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. | |
Private Attributes | |
| const ISpace & | m_space |
| The matrix space. | |
| const MatrixDistribution & | m_distribution |
| The matrix distribution. | |
| Arccore::UniqueArray< Arccore::String > | m_tags |
| The array of tags. | |
| Arccore::UniqueArray< Arccore::UniqueArray< Arccore::Integer > > | m_tagged_parts |
| The arrays of local ids for each tag. | |
| Arccore::UniqueArray< Arccore::Integer > | m_untagged_part |
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.
References m_distribution, and m_space.
| 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 m_distribution, m_space, m_tagged_parts, m_tags, and 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.
References m_tagged_parts.
|
inline |
Get the i-th tag.
| [in] | i | The requested tag |
Definition at line 76 of file Partition.h.
References m_tags.
Referenced by create().
|
inline |
Get indices of a specific matching tag.
| [in] | i | The requested tag |
Definition at line 83 of file Partition.h.
References m_tagged_parts.
|
inline |
Get untagged indices.
Definition at line 98 of file Partition.h.
|
private |
The matrix distribution.
Definition at line 107 of file Partition.h.
Referenced by create(), and Partition().
|
private |
The matrix space.
Definition at line 105 of file Partition.h.
Referenced by create(), and Partition().
|
private |
The arrays of local ids for each tag.
Definition at line 111 of file Partition.h.
Referenced by create(), nbTaggedParts(), and taggedPart().
|
private |
|
private |
Definition at line 113 of file Partition.h.