14 #ifndef _ZOLTAN2_ALGORITHM_HPP_
15 #define _ZOLTAN2_ALGORITHM_HPP_
18 template <
typename Adapter>
41 template <
typename Adapter>
104 std::vector<part_t> & ,
105 std::vector<part_t> & ,
106 std::vector<part_t> & ,
107 std::vector<part_t> & )
const
117 virtual std::vector<coordinateModelPartBox> &
151 size_t &,
part_t ** )
const
virtual part_t pointAssign(int, scalar_t *) const
pointAssign method: Available only for some partitioning algorithms
virtual void boxAssign(int, scalar_t *, scalar_t *, size_t &, part_t **) const
boxAssign method: Available only for some partitioning algorithms
virtual void partition(const RCP< PartitioningSolution< Adapter > > &)
Partitioning method.
virtual void getCommunicationGraph(const PartitioningSolution< Adapter > *, ArrayRCP< part_t > &, ArrayRCP< part_t > &)
returns serial communication graph of a computed partition
PartitionMapping maps a solution or an input distribution to ranks.
virtual void getMyPartsView(part_t &, part_t *&)
In mapping, returns a view of parts assigned to the current rank.
map_t::global_ordinal_type gno_t
virtual void map(const RCP< MappingSolution< Adapter > > &)
Mapping method.
Defines the OrderingSolution class.
#define Z2_THROW_NOT_IMPLEMENTED
Defines the PartitioningSolution class.
virtual int globalOrder(const RCP< GlobalOrderingSolution< gno_t > > &)
Ordering method.
virtual std::vector< coordinateModelPartBox > & getPartBoxesView() const
for partitioning methods, return bounding boxes of the
virtual void getPartitionTree(part_t, part_t &, std::vector< part_t > &, std::vector< part_t > &, std::vector< part_t > &, std::vector< part_t > &) const
for partitioning methods, fill arrays with partition tree info
SparseMatrixAdapter_t::part_t part_t
Adapter::scalar_t scalar_t
A PartitioningSolution is a solution to a partitioning problem.
virtual void match()
Matching method.
virtual void partitionMatrix(const RCP< MatrixPartitioningSolution< Adapter > > &)
Matrix Partitioning method.
Algorithm defines the base class for all algorithms.
map_t::local_ordinal_type lno_t
virtual int getRankForPart(part_t)
In mapping, returns the rank to which a part is assigned.
Defines the MappingSolution class.
Gathering definitions used in software development.
Defines the ColoringSolution class.
virtual void color(const RCP< ColoringSolution< Adapter > > &)
Coloring method.
virtual int localOrder(const RCP< LocalOrderingSolution< lno_t > > &)
Ordering method.
virtual bool isPartitioningTreeBinary() const
return if algorithm determins tree to be binary
A PartitioningSolution is a solution to a partitioning problem.
The class containing coloring solution.