15#ifndef _ZOLTAN2_MATCHINGSOLUTION_HPP_
16#define _ZOLTAN2_MATCHINGSOLUTION_HPP_
34template <
typename Adapter>
35 class MatchingSolution :
public Solution
38 typedef typename Adapter::gno_t
gno_t;
39 typedef typename Adapter::scalar_t scalar_t;
40 typedef typename Adapter::lno_t
lno_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.
Gathering definitions used in software development.
map_t::local_ordinal_type lno_t
map_t::global_ordinal_type gno_t
Created by mbenlioglu on Aug 31, 2020.