Chi-Tech
LinearGraphPartitioner.h
Go to the documentation of this file.
1
#ifndef CHITECH_LINEARGRAPHPARTITIONER_H
2
#define CHITECH_LINEARGRAPHPARTITIONER_H
3
4
#include "
GraphPartitioner.h
"
5
6
namespace
chi
7
{
8
9
class
LinearGraphPartitioner
:
public
GraphPartitioner
10
{
11
public
:
12
static
InputParameters
GetInputParameters
();
13
explicit
LinearGraphPartitioner
(
const
InputParameters
& params);
14
15
std::vector<int64_t>
16
Partition
(
const
std::vector<std::vector<uint64_t>>& graph,
17
const
std::vector<chi_mesh::Vector3>& centroids,
18
int
number_of_parts)
override
;
19
20
protected
:
21
const
int
all_to_rank_
;
22
};
23
24
}
// namespace chi
25
26
#endif
// CHITECH_LINEARGRAPHPARTITIONER_H
GraphPartitioner.h
chi::GraphPartitioner
Definition:
GraphPartitioner.h:17
chi::InputParameters
Definition:
input_parameters.h:23
chi::LinearGraphPartitioner
Definition:
LinearGraphPartitioner.h:10
chi::LinearGraphPartitioner::LinearGraphPartitioner
LinearGraphPartitioner(const InputParameters ¶ms)
Definition:
LinearGraphPartitioner.cc:37
chi::LinearGraphPartitioner::Partition
std::vector< int64_t > Partition(const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > ¢roids, int number_of_parts) override
Definition:
LinearGraphPartitioner.cc:44
chi::LinearGraphPartitioner::all_to_rank_
const int all_to_rank_
Definition:
LinearGraphPartitioner.h:21
chi::LinearGraphPartitioner::GetInputParameters
static InputParameters GetInputParameters()
Definition:
LinearGraphPartitioner.cc:15
chi
Definition:
chi_runtime.h:53
framework
graphs
LinearGraphPartitioner.h
Generated by
1.9.3