Template Numerical Library version\ main:be918e6f
|
Static N-dimensional array. More...
#include <TNL/Containers/NDArray.h>
Public Member Functions | |
constexpr void | setValue (Value value) |
Sets all elements of the array to given value. | |
![]() | |
__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 | |
![]() | |
using | IndexType |
![]() | |
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.