51 #ifndef _ZOLTAN2_MATCHINGSOLUTION_HPP_
52 #define _ZOLTAN2_MATCHINGSOLUTION_HPP_
70 template <
typename Adapter>
71 class MatchingSolution :
public Solution
74 typedef typename Adapter::gno_t gno_t;
75 typedef typename Adapter::scalar_t scalar_t;
76 typedef typename Adapter::lno_t lno_t;
88 colors_ = ArrayRCP<int>(length_);
98 inline size_t getMatchsSize() {
return length_;}
102 inline ArrayRCP<int> &getMatchsRCP() {
return colors_;}
106 inline int * getMatchs() {
return &(*colors_);}
114 for (
size_t i=0; i<length_; i++){
115 if (colors_[i] > maxColor)
116 maxColor = colors_[i];
128 ArrayRCP<int> colors_;
Defines the Solution base class.
Gathering definitions used in software development.