50 #ifndef _ZOLTAN2_ALGORITHM_HPP_
51 #define _ZOLTAN2_ALGORITHM_HPP_
54 template <
typename Adapter>
77 template <
typename Adapter>
82 typedef typename Adapter::lno_t
lno_t;
83 typedef typename Adapter::gno_t
gno_t;
140 std::vector<part_t> & ,
141 std::vector<part_t> & ,
142 std::vector<part_t> & ,
143 std::vector<part_t> & )
const
153 virtual std::vector<coordinateModelPartBox> &
187 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.
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.
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.