Template Numerical Library version\ main:40802e2e
|
Static N-dimensional array. More...
#include <TNL/Containers/NDArray.h>
Public Member Functions | |
NDArrayStorage & | operator= (const NDArrayStorage &other)=default |
Copy-assignment operator for deep-copying data from another array. Mismatched sizes cause reallocations. | |
template<typename OtherArray > | |
NDArrayStorage & | operator= (const OtherArray &other) |
Templated copy-assignment operator for deep-copying data from another array. | |
NDArrayStorage & | operator= (NDArrayStorage &&) noexcept(false)=default |
Move-assignment operator for acquiring data from rvalues. | |
constexpr void | setValue (Value value) |
Sets all elements of the array to given value. | |
Public Member Functions inherited from TNL::Containers::ConstStaticSizesHolder< typename SizesHolder::IndexType, SizesHolder::getDimension(), 0 > | |
__cuda_callable__ typename SizesHolder::IndexType | getSize () const |
__cuda_callable__ typename SizesHolder::IndexType | operator[] (typename SizesHolder::IndexType level) const |
Returns the dynamic size along a specific axis. It is always equal to the static size. | |
Additional Inherited Members | |
Public Types inherited from TNL::Containers::ConstStaticSizesHolder< typename SizesHolder::IndexType, SizesHolder::getDimension(), 0 > | |
using | IndexType |
Static Public Member Functions inherited from TNL::Containers::ConstStaticSizesHolder< typename SizesHolder::IndexType, SizesHolder::getDimension(), 0 > | |
static constexpr std::size_t | getDimension () |
static constexpr std::size_t | getStaticSize () |
static constexpr typename SizesHolder::IndexType | getStaticSize (typename SizesHolder::IndexType level) |
Returns the static size of a specific dimension identified by a runtime parameter level. | |
Static N-dimensional array.
Value | Type of the values stored in the array. |
SizesHolder | Instance of SizesHolder that will represent the array sizes. |
Permutation | Permutation that will be applied to indices when accessing the array elements. The identity permutation is used by default. |
Index | Type of indices used for addressing the array elements. |
See also the Users' Guide.