Creates tags in the matrix. More...
#include <core/alien/core/utils/Partition.h>
Public Member Functions | |
| Partition (const ISpace &space, const MatrixDistribution &distribution) | |
| Constructor. | |
| ~Partition ()=default | |
| Free resources. | |
| void | create (const Arccore::UniqueArray< Arccore::String > &tags) |
| Create the tags of the matrix. | |
| Arccore::Integer | nbTaggedParts () const |
| Get the number of untagged parts of the matrix. | |
| Arccore::String | tag (Arccore::Integer i) const |
| Get the i-th tag. | |
| const Arccore::UniqueArray< Arccore::Integer > & | taggedPart (Arccore::Integer i) const |
| Get indices of a specific matching tag. | |
| bool | hasUntaggedPart () const |
| Whether or not the matrix has untagged part. | |
| const Arccore::UniqueArray< Arccore::Integer > & | untaggedPart () const |
| Get untagged indices. | |
Creates tags in the matrix.
Decorates the matrix by associating tags to entries
Definition at line 46 of file Partition.h.
| Alien::Partition::Partition | ( | const ISpace & | space, |
| const MatrixDistribution & | distribution ) |
Constructor.
| [in] | Space related functions. | The space of the matrix |
| [in] | distribution | The distribution of the matrix |
Definition at line 40 of file Partition.cc.
| void Alien::Partition::create | ( | const Arccore::UniqueArray< Arccore::String > & | tags | ) |
Create the tags of the matrix.
| [in] | tags | The array of tags |
Definition at line 48 of file Partition.cc.
References tag().
Referenced by ~Partition().
|
inline |
Whether or not the matrix has untagged part.
Definition at line 92 of file Partition.h.
|
inline |
Get the number of untagged parts of the matrix.
Definition at line 69 of file Partition.h.
|
inline |
Get the i-th tag.
| [in] | i | The requested tag |
Definition at line 76 of file Partition.h.
Referenced by create().
|
inline |
Get indices of a specific matching tag.
| [in] | i | The requested tag |
Definition at line 83 of file Partition.h.
|
inline |
Get untagged indices.
Definition at line 98 of file Partition.h.