|
Zoltan2
|
The class containing coloring solution. More...
#include <Zoltan2_ColoringSolution.hpp>


Public Member Functions | |
| ColoringSolution (size_t length) | |
| Constructor allocates memory for the solution. | |
| size_t | getColorsSize () |
| Get (local) size of color array. | |
| ArrayRCP< int > & | getColorsRCP () |
| Get (local) color array by RCP. | |
| int * | getColors () |
| Get (local) color array by raw pointer (no RCP). | |
| int | getNumColors () |
| Get local number of colors. This is computed from the coloring each time, as this is cheap. | |
Protected Attributes | |
| size_t | length_ |
| Get global number of colors. | |
| ArrayRCP< int > | colors_ |
The class containing coloring solution.
Template parameters:
adapter input adapterThe 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.
| Zoltan2::ColoringSolution< Adapter >::ColoringSolution | ( | size_t | length | ) | [inline] |
Constructor allocates memory for the solution.
Definition at line 82 of file Zoltan2_ColoringSolution.hpp.
| size_t Zoltan2::ColoringSolution< Adapter >::getColorsSize | ( | ) | [inline] |
Get (local) size of color array.
Definition at line 98 of file Zoltan2_ColoringSolution.hpp.
| ArrayRCP<int>& Zoltan2::ColoringSolution< Adapter >::getColorsRCP | ( | ) | [inline] |
Get (local) color array by RCP.
Definition at line 102 of file Zoltan2_ColoringSolution.hpp.
| int* Zoltan2::ColoringSolution< Adapter >::getColors | ( | ) | [inline] |
Get (local) color array by raw pointer (no RCP).
Definition at line 106 of file Zoltan2_ColoringSolution.hpp.
| int Zoltan2::ColoringSolution< Adapter >::getNumColors | ( | ) | [inline] |
Get local number of colors. This is computed from the coloring each time, as this is cheap.
Definition at line 111 of file Zoltan2_ColoringSolution.hpp.
size_t Zoltan2::ColoringSolution< Adapter >::length_ [protected] |
Get global number of colors.
Definition at line 127 of file Zoltan2_ColoringSolution.hpp.
ArrayRCP<int> Zoltan2::ColoringSolution< Adapter >::colors_ [protected] |
Definition at line 128 of file Zoltan2_ColoringSolution.hpp.
1.7.6.1