|
| DistributedVector (const DistributedVector &)=default |
| Copy constructor (makes a deep copy).
|
|
| DistributedVector (const DistributedVector &vector, const AllocatorType &allocator) |
| Copy constructor with a specific allocator (makes a deep copy).
|
|
| DistributedVector (DistributedVector &&) noexcept=default |
| Default move constructor.
|
|
| DistributedArray ()=default |
| Constructs an empty array with zero size.
|
|
| DistributedArray (const AllocatorType &allocator) |
| Constructs an empty array and sets the provided allocator.
|
|
| DistributedArray (const DistributedArray &array) |
| Copy constructor (makes a deep copy).
|
|
| DistributedArray (const DistributedArray &array, const AllocatorType &allocator) |
| Copy constructor with a specific allocator (makes a deep copy).
|
|
| DistributedArray (DistributedArray &&) noexcept=default |
|
| DistributedArray (LocalRangeType localRange, Index ghosts, Index globalSize, const MPI::Comm &communicator, const AllocatorType &allocator=AllocatorType()) |
|
ConstLocalViewType | getConstLocalView () const |
| Returns a non-modifiable view of the local part of the vector.
|
|
ConstLocalViewType | getConstLocalViewWithGhosts () const |
| Returns a non-modifiable view of the local part of the vector, including ghost values.
|
|
ConstViewType | getConstView () const |
| Returns a non-modifiable view of the vector.
|
|
LocalViewType | getLocalView () |
| Returns a modifiable view of the local part of the vector.
|
|
LocalViewType | getLocalViewWithGhosts () |
| Returns a modifiable view of the local part of the vector, including ghost values.
|
|
ViewType | getView () |
| Returns a modifiable view of the vector.
|
|
| operator ConstViewType () const |
| Conversion operator to a non-modifiable view of the vector.
|
|
| operator ViewType () |
| Conversion operator to a modifiable view of the vector.
|
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator%= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator%= (const Vector &vector) |
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator%= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator%= (Scalar c) |
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator*= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator*= (const Vector &vector) |
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator*= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator*= (Scalar c) |
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator+= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator+= (const Vector &vector) |
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator+= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator+= (Scalar c) |
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator-= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator-= (const Vector &vector) |
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator-= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator-= (Scalar c) |
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator/= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator/= (const Vector &vector) |
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator/= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator/= (Scalar c) |
|
template<typename Array , typename... , typename = std::enable_if_t< HasSubscriptOperator< Array >::value >> |
DistributedArray & | operator= (const Array &array) |
|
DistributedArray & | operator= (const DistributedArray &array) |
|
DistributedVector & | operator= (const DistributedVector &)=default |
| Copy-assignment operator for copying data from another vector.
|
|
template<typename Vector , typename... , typename = std::enable_if_t< HasSubscriptOperator< Vector >::value >> |
DistributedVector & | operator= (const Vector &vector) |
|
template<typename Vector , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator= (const Vector &vector) |
|
DistributedArray & | operator= (DistributedArray &&) noexcept(false)=default |
|
DistributedVector & | operator= (DistributedVector &&) noexcept(false)=default |
| Move-assignment operator for acquiring data from rvalues.
|
|
template<typename Scalar , typename... , typename = std::enable_if_t< ! HasSubscriptOperator< Scalar >::value >> |
DistributedVector & | operator= (Scalar c) |
|
template<typename Scalar , typename... , typename > |
DistributedVector< Real, Device, Index, Allocator > & | operator= (Scalar c) |
|
| DistributedArray ()=default |
| Constructs an empty array with zero size.
|
|
| DistributedArray (const AllocatorType &allocator) |
| Constructs an empty array and sets the provided allocator.
|
|
| DistributedArray (const DistributedArray &array) |
| Copy constructor (makes a deep copy).
|
|
| DistributedArray (const DistributedArray &array, const AllocatorType &allocator) |
| Copy constructor with a specific allocator (makes a deep copy).
|
|
| DistributedArray (DistributedArray &&) noexcept=default |
|
| DistributedArray (LocalRangeType localRange, int ghosts, int globalSize, const MPI::Comm &communicator, const AllocatorType &allocator=AllocatorType()) |
|
void | copyFromGlobal (ConstLocalViewType globalArray) |
|
bool | empty () const |
|
void | forElements (IndexType begin, IndexType end, Function &&f) |
| Process the lambda function f for each array element in interval [ begin, end).
|
|
void | forElements (IndexType begin, IndexType end, Function &&f) const |
| Process the lambda function f for each array element in interval [ begin, end) for constant instances of the array.
|
|
AllocatorType | getAllocator () const |
| Returns the allocator associated to the array.
|
|
const MPI::Comm & | getCommunicator () const |
| Returns the MPI communicator associated to the array.
|
|
ConstLocalViewType | getConstLocalView () const |
| Returns a non-modifiable view of the local part of the array.
|
|
ConstLocalViewType | getConstLocalViewWithGhosts () const |
| Returns a non-modifiable view of the local part of the array, including ghost values.
|
|
ConstViewType | getConstView () const |
| Returns a non-modifiable view of the array.
|
|
ValueType | getElement (IndexType i) const |
|
IndexType | getGhosts () const |
|
const LocalRangeType & | getLocalRange () const |
| Returns the local range of the distributed array.
|
|
LocalViewType | getLocalView () |
| Returns a modifiable view of the local part of the array.
|
|
LocalViewType | getLocalViewWithGhosts () |
| Returns a modifiable view of the local part of the array, including ghost values.
|
|
IndexType | getSize () const |
|
std::shared_ptr< SynchronizerType > | getSynchronizer () const |
|
int | getValuesPerElement () const |
|
ViewType | getView () |
| Returns a modifiable view of the array.
|
|
void | loadFromGlobalFile (const String &fileName, bool allowCasting=false) |
|
void | loadFromGlobalFile (File &file, bool allowCasting=false) |
|
| operator ConstViewType () const |
| Conversion operator to a non-modifiable view of the array.
|
|
| operator ViewType () |
| Conversion operator to a modifiable view of the array.
|
|
bool | operator!= (const Array &array) const |
|
DistributedArray & | operator= (const Array &array) |
|
DistributedArray< Real, Devices::Host, int, Allocator > & | operator= (const Array &array) |
|
DistributedArray & | operator= (const DistributedArray &array) |
|
DistributedArray & | operator= (DistributedArray &&) noexcept(false)=default |
|
bool | operator== (const Array &array) const |
|
__cuda_callable__ ValueType & | operator[] (IndexType i) |
|
__cuda_callable__ const ValueType & | operator[] (IndexType i) const |
|
void | reset () |
|
void | setDistribution (LocalRangeType localRange, int ghosts, int globalSize, const MPI::Comm &communicator) |
| Set new global size and distribution of the array.
|
|
void | setElement (IndexType i, ValueType value) |
|
void | setLike (const Array &array) |
|
void | setSynchronizer (std::shared_ptr< SynchronizerType > synchronizer, int valuesPerElement=1) |
|
void | setValue (ValueType value) |
|
void | startSynchronization () |
|
void | waitForSynchronization () const |
|