26#include <arccore/base/String.h>
63 void create(
const Arccore::UniqueArray<Arccore::String>& tags);
69 Arccore::Integer
nbTaggedParts()
const {
return m_tagged_parts.size(); }
76 Arccore::String
tag(Arccore::Integer i)
const {
return m_tags[i]; }
83 const Arccore::UniqueArray<Arccore::Integer>&
taggedPart(Arccore::Integer i)
const
85 return m_tagged_parts[i];
100 return m_untagged_part;
109 Arccore::UniqueArray<Arccore::String> m_tags;
111 Arccore::UniqueArray<Arccore::UniqueArray<Arccore::Integer>> m_tagged_parts;
113 Arccore::UniqueArray<Arccore::Integer> m_untagged_part;
Interface for algebraic space objects.
Computes a matrix distribution.
~Partition()=default
Free resources.
const Arccore::UniqueArray< Arccore::Integer > & untaggedPart() const
Get untagged indices.
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.
Partition(const ISpace &space, const MatrixDistribution &distribution)
Constructor.
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.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --