15 #ifndef _ZOLTAN2_MATCHINGSOLUTION_HPP_
16 #define _ZOLTAN2_MATCHINGSOLUTION_HPP_
34 template <
typename Adapter>
35 class MatchingSolution :
public Solution
39 typedef typename Adapter::scalar_t scalar_t;
52 colors_ = ArrayRCP<int>(length_);
62 inline size_t getMatchsSize() {
return length_;}
66 inline ArrayRCP<int> &getMatchsRCP() {
return colors_;}
70 inline int * getMatchs() {
return &(*colors_);}
78 for (
size_t i=0; i<length_; i++){
79 if (colors_[i] > maxColor)
80 maxColor = colors_[i];
92 ArrayRCP<int> colors_;
Defines the Solution base class.
map_t::global_ordinal_type gno_t
map_t::local_ordinal_type lno_t
Gathering definitions used in software development.