Compute block offsets for variable block elements. More...
#include <core/alien/core/block/VBlockOffsets.h>
Classes | |
| struct | Internal |
| Internal structure for variable block offset computation tool. More... | |
Public Member Functions | |
| VBlockImpl (const VBlock &block, const VectorDistribution &dist) | |
| Constructor for vectors variable blocks. | |
| VBlockImpl (const VBlock &block, const MatrixDistribution &dist) | |
| Constructor for matrices variable blocks. | |
| ~VBlockImpl () | |
| Free resources. | |
| VBlockImpl (const VBlockImpl &block) | |
| Copy constructor. | |
| Arccore::Integer | sizeFromLocalIndex (Arccore::Integer index) const |
| Get the block size from a local index. | |
| Arccore::Integer | offsetFromLocalIndex (Arccore::Integer index) const |
| Get the offset from a local index. | |
| Arccore::Integer | offset (Arccore::Integer index) const |
| Get the offset from a global or local index. | |
| Arccore::ConstArrayView< Arccore::Integer > | sizeOfLocalIndex () const |
| Get the block sizes for all local blocks. | |
| Arccore::ConstArrayView< Arccore::Integer > | offsetOfLocalIndex () const |
| Get the offsets for all local blocks. | |
| std::shared_ptr< VBlockImpl > | clone () const |
| Copy this object. | |
Compute block offsets for variable block elements.
Definition at line 45 of file VBlockOffsets.h.
| Alien::VBlockImpl::VBlockImpl | ( | const VBlock & | block, |
| const VectorDistribution & | dist ) |
Constructor for vectors variable blocks.
| [in] | Block related API | The variable blocks |
| [in] | dist | The vector distribution |
Definition at line 86 of file VBlockOffsets.cc.
References Alien::VectorDistribution::localSize(), and Alien::VectorDistribution::offset().
Referenced by VBlockImpl().
| Alien::VBlockImpl::VBlockImpl | ( | const VBlock & | block, |
| const MatrixDistribution & | dist ) |
Constructor for matrices variable blocks.
| [in] | Block related API | The variable blocks |
| [in] | dist | The matrix distribution |
Definition at line 97 of file VBlockOffsets.cc.
References Alien::MatrixDistribution::localRowSize(), and Alien::MatrixDistribution::rowOffset().
|
inline |
Free resources.
Definition at line 63 of file VBlockOffsets.h.
| Alien::VBlockImpl::VBlockImpl | ( | const VBlockImpl & | block | ) |
Copy constructor.
| [in] | Block related API | The variable block offset computation tool |
Definition at line 79 of file VBlockOffsets.cc.
References VBlockImpl().
| std::shared_ptr< VBlockImpl > Alien::VBlockImpl::clone | ( | ) | const |
| Integer Alien::VBlockImpl::offset | ( | Arccore::Integer | index | ) | const |
Get the offset from a global or local index.
| [in] | index | The global or local index |
Definition at line 148 of file VBlockOffsets.cc.
| Integer Alien::VBlockImpl::offsetFromLocalIndex | ( | Arccore::Integer | index | ) | const |
Get the offset from a local index.
| [in] | index | The local index |
Definition at line 162 of file VBlockOffsets.cc.
| ConstArrayView< Integer > Alien::VBlockImpl::offsetOfLocalIndex | ( | ) | const |
Get the offsets for all local blocks.
Definition at line 217 of file VBlockOffsets.cc.
| Integer Alien::VBlockImpl::sizeFromLocalIndex | ( | Arccore::Integer | index | ) | const |
Get the block size from a local index.
| [in] | index | The local index |
Definition at line 139 of file VBlockOffsets.cc.
| ConstArrayView< Integer > Alien::VBlockImpl::sizeOfLocalIndex | ( | ) | const |
Get the block sizes for all local blocks.
Definition at line 208 of file VBlockOffsets.cc.