View on a MultiArray2. More...
#include <arcane/utils/MultiArray2View.h>
Public Member Functions | |
| JaggedSmallSpan ()=default | |
| Empty view. | |
| constexpr __host__ __device__ Int32 | dim1Size () const |
| Number of elements in the first dimension. | |
| constexpr __host__ __device__ SmallSpan< const Int32 > | dim2Sizes () const |
| Number of elements in the second dimension. | |
| constexpr __host__ __device__ Int32 | totalNbElement () const |
| Total number of elements in the array. | |
| constexpr __host__ __device__ SmallSpan< DataType > | operator[] (Int32 i) const |
| The i-th element of the array. | |
Friends | |
| class | MultiArray2< std::remove_cv_t< DataType > > |
View on a MultiArray2.
Instances of this class are created by calling MultiArray2::span() or MultiArray2::constSpan().
Definition at line 153 of file MultiArray2View.h.
|
inlineconstexpr |
Number of elements in the first dimension.
Definition at line 177 of file MultiArray2View.h.
|
inlineconstexpr |
Number of elements in the second dimension.
Definition at line 180 of file MultiArray2View.h.
|
inlineconstexpr |
The i-th element of the array.
Definition at line 188 of file MultiArray2View.h.
References Arcane::SmallSpan< T, Extent >::subSpan().
|
inlineconstexpr |
Total number of elements in the array.
Definition at line 183 of file MultiArray2View.h.
|
friend |
Definition at line 140 of file MultiArray2View.h.