Zoltan2
|
The class containing coloring solution. More...
#include <Zoltan2_ColoringSolution.hpp>
Public Member Functions | |
ColoringSolution (size_t length) | |
Constructor allocates memory for the solution. More... | |
size_t | getColorsSize () |
Get (local) size of color array. More... | |
ArrayRCP< int > & | getColorsRCP () |
Get (local) color array by RCP. More... | |
int * | getColors () |
Get (local) color array by raw pointer (no RCP). More... | |
int | getNumColors () |
Get local number of colors. This is computed from the coloring each time, as this is cheap. More... | |
Public Member Functions inherited from Zoltan2::Solution | |
virtual | ~Solution () |
Protected Attributes | |
size_t | length_ |
Get global number of colors. More... | |
ArrayRCP< int > | colors_ |
The class containing coloring solution.
Template parameters: \li \c adapter input adapter
The coloring solution contains an array of colors, one per id. Colors are represented as int (sufficient for any reasonable use case). A special value, currently 0, is used for vertices that have not been colored.
Definition at line 70 of file Zoltan2_ColoringSolution.hpp.
|
inline |
Constructor allocates memory for the solution.
Definition at line 81 of file Zoltan2_ColoringSolution.hpp.
|
inline |
Get (local) size of color array.
Definition at line 97 of file Zoltan2_ColoringSolution.hpp.
|
inline |
Get (local) color array by RCP.
Definition at line 101 of file Zoltan2_ColoringSolution.hpp.
|
inline |
Get (local) color array by raw pointer (no RCP).
Definition at line 105 of file Zoltan2_ColoringSolution.hpp.
|
inline |
Get local number of colors. This is computed from the coloring each time, as this is cheap.
Definition at line 110 of file Zoltan2_ColoringSolution.hpp.
|
protected |
Get global number of colors.
Definition at line 126 of file Zoltan2_ColoringSolution.hpp.
|
protected |
Definition at line 127 of file Zoltan2_ColoringSolution.hpp.