Multi-dimensional arrays for numerical types accessible on accelerators. More...
#include <arccore/common/NumArray.h>
Public Types | |
| using | ExtentsType = Extents |
| using | ThatClass = NumArray<DataType, Extents, LayoutPolicy> |
| using | DynamicDimsType = typename ExtentsType::DynamicDimsType |
| using | ConstMDSpanType = MDSpan<const DataType, ExtentsType, LayoutPolicy> |
| using | MDSpanType = MDSpan<DataType, ExtentsType, LayoutPolicy> |
| using | ArrayWrapper = Impl::NumArrayContainer<DataType> |
| using | ArrayBoundsIndexType = typename MDSpanType::ArrayBoundsIndexType |
| using | value_type = DataType |
| using | LayoutPolicyType = LayoutPolicy |
Public Member Functions | |
| NumArray () | |
| Constructs an empty array. | |
| NumArray (DynamicDimsType extents) | |
| Constructs an array by specifying the dimension list directly. | |
| NumArray (const DynamicDimsType &extents, eMemoryResource r) | |
| Constructs an array by specifying the dimension list directly. | |
| NumArray (eMemoryResource r) | |
| Creates an empty array using the memory resource r. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size, Int32 dim4_size) | |
| Constructs an array with 4 dynamic values. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size, Int32 dim4_size, eMemoryResource r) | |
| Constructs an array with 4 dynamic values. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size) | |
| Constructs an array with 3 dynamic values. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size, eMemoryResource r) | |
| Constructs an array with 3 dynamic values. | |
| NumArray (Int32 dim1_size, Int32 dim2_size) | |
| Constructs an array with 2 dynamic values. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, eMemoryResource r) | |
| Constructs an array with 2 dynamic values. | |
| NumArray (Int32 dim1_size) | |
| Constructs an array with 1 dynamic value. | |
| NumArray (Int32 dim1_size, eMemoryResource r) | |
| Constructs an array with 1 dynamic value. | |
| NumArray (Int32 dim1_size, Int32 dim2_size, std::initializer_list< DataType > alist) | |
| Constructs an array from predefined values (only dynamic 2D arrays). | |
| NumArray (Int32 dim1_size, std::initializer_list< DataType > alist) | |
| Constructs an array from predefined values (only dynamic 1D arrays). | |
| NumArray (SmallSpan< const DataType > v) | |
| Constructs an instance from a view (only dynamic 1D arrays). | |
| NumArray (Span< const DataType > v) | |
| Constructs an instance from a view (only dynamic 1D arrays). | |
| NumArray (const ThatClass &rhs) | |
| NumArray (ThatClass &&rhs) | |
| ThatClass & | operator= (ThatClass &&)=default |
| ThatClass & | operator= (const ThatClass &rhs) |
| Copy assignment operator. | |
| void | swap (ThatClass &rhs) |
| Swaps the data with rhs. | |
| constexpr Int64 | totalNbElement () const |
| Total number of elements in the array. | |
| ArrayExtents< Extents > | extents () const |
| Values of the dimensions. | |
| ArrayExtentsWithOffset< Extents, LayoutPolicy > | extentsWithOffset () const |
| Int64 | capacity () const |
| eMemoryResource | memoryRessource () const |
| eMemoryResource | memoryResource () const |
| Span< std::byte > | bytes () |
| View as bytes. | |
| Span< const std::byte > | bytes () const |
| Constant view as bytes. | |
| IMemoryAllocator * | memoryAllocator () const |
| Associated memory allocator. | |
| void | setDebugName (const String &str) |
| Sets the array name for debug information. | |
| String | debugName () |
| Debug name (null if no name specified). | |
| constexpr Int32 | dim1Size () const |
| Value of the first dimension. | |
| constexpr Int32 | dim2Size () const |
| Value of the second dimension. | |
| constexpr Int32 | dim3Size () const |
| Value of the third dimension. | |
| constexpr Int32 | dim4Size () const |
| Value of the fourth dimension. | |
| constexpr Int32 | extent0 () const |
| Value of the first dimension. | |
| constexpr Int32 | extent1 () const |
| Value of the second dimension. | |
| constexpr Int32 | extent2 () const |
| Value of the third dimension. | |
| constexpr Int32 | extent3 () const |
| Value of the fourth dimension. | |
| void | resize (Int32 dim1_size) |
| Resizes the array without keeping current values. | |
| void | resize (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size, Int32 dim4_size) |
| Resizes the array without keeping current values. | |
| void | resize (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size) |
| Resizes the array without keeping current values. | |
| void | resize (Int32 dim1_size, Int32 dim2_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size, Int32 dim4_size) |
| Resizes the array. | |
| void | resizeDestructive (Int32 dim1_size, Int32 dim2_size, Int32 dim3_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (Int32 dim1_size, Int32 dim2_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (Int32 dim1_size) |
| Resizes the array without keeping current values. | |
| void | resize (const DynamicDimsType &dims) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (const DynamicDimsType &dims) |
| Resizes the array without keeping current values. | |
| void | fill (const DataType &v) |
| Fills the array values with v. | |
| void | fill (const DataType &v, SmallSpan< const Int32 > indexes, const RunQueue *queue) |
| Fills the index array values using the queue queue with the value v. | |
| void | fill (const DataType &v, SmallSpan< const Int32 > indexes, const RunQueue &queue) |
| Fills the index array values using the queue queue with the value v. | |
| void | fill (const DataType &v, const RunQueue *queue) |
| Fills the instance elements with the value v using the queue queue. | |
| void | fill (const DataType &v, const RunQueue &queue) |
| Fills the instance elements with the value v using the queue queue. | |
| void | fillHost (const DataType &v) |
| Fills the array values with v. | |
| void | copy (SmallSpan< const DataType > rhs) |
| Copies the values from rhs into the instance. | |
| void | copy (ConstMDSpanType rhs) |
| Copies the values from rhs into the instance. | |
| void | copy (const ThatClass &rhs) |
| Copies the values from rhs into the instance. | |
| void | copy (SmallSpan< const DataType > rhs, const RunQueue *queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| void | copy (ConstMDSpanType rhs, const RunQueue *queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| void | copy (SmallSpan< const DataType > rhs, const RunQueue &queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| void | copy (ConstMDSpanType rhs, const RunQueue &queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| void | copy (const ThatClass &rhs, const RunQueue *queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| void | copy (const ThatClass &rhs, const RunQueue &queue) |
| Copies the values from rhs into the instance via the queue queue. | |
| DataType & | operator[] (Int32 i) |
| Retrieves a reference for element i. | |
| DataType | operator[] (Int32 i) const |
| Value for element i. | |
| DataType | operator() (Int32 i, Int32 j, Int32 k, Int32 l) const |
| Value for element i,j,k,l. | |
| DataType & | operator() (Int32 i, Int32 j, Int32 k, Int32 l) |
| Positions the value for element i,j,k,l. | |
| DataType | operator() (Int32 i, Int32 j, Int32 k) const |
| Value for element i,j,k. | |
| DataType & | operator() (Int32 i, Int32 j, Int32 k) |
| Positions the value for element i,j,k. | |
| DataType | operator() (Int32 i, Int32 j) const |
| Value for element i,j. | |
| DataType & | operator() (Int32 i, Int32 j) |
| Positions the value for element i,j. | |
| DataType | operator() (Int32 i) const |
| Value for element i. | |
| DataType & | operator() (Int32 i) |
| Positions the value for element i. | |
| const DataType & | operator() (ArrayBoundsIndexType idx) const |
| Constant reference for element idx. | |
| DataType & | operator() (ArrayBoundsIndexType idx) |
| Modifiable reference for element idx. | |
| DataType & | s (Int32 i, Int32 j, Int32 k, Int32 l) |
| Positions the value for element i,j,k,l. | |
| DataType & | s (Int32 i, Int32 j, Int32 k) |
| Positions the value for element i,j,k. | |
| DataType & | s (Int32 i, Int32 j) |
| Positions the value for element i,j. | |
| DataType & | s (Int32 i) |
| Positions the value for element i. | |
| DataType & | s (ArrayBoundsIndexType idx) |
| Positions the value for element idx. | |
| MDSpanType | span () |
| Multi-dimensional view on the instance. | |
| ConstMDSpanType | span () const |
| Constant multi-dimensional view on the instance. | |
| ConstMDSpanType | constSpan () const |
| Constant multi-dimensional view on the instance. | |
| MDSpanType | mdspan () |
| Multi-dimensional view on the instance. | |
| ConstMDSpanType | mdspan () const |
| Constant multi-dimensional view on the instance. | |
| ConstMDSpanType | constMDSpan () const |
| Constant multi-dimensional view on the instance. | |
| Span< const DataType > | to1DSpan () const |
| Constant 1D view on the instance. | |
| Span< DataType > | to1DSpan () |
| 1D view on the instance | |
| constexpr | operator MDSpanType () |
| Conversion to a multi-dimensional view on the instance. | |
| constexpr | operator ConstMDSpanType () const |
| Conversion to a constant multi-dimensional view on the instance. | |
| constexpr | operator SmallSpan< DataType > () |
| Conversion to a 1D view on the instance (only if rank == 1). | |
| constexpr | operator SmallSpan< const DataType > () const |
| Conversion to a constant 1D view on the instance (only if rank == 1). | |
| constexpr SmallSpan< DataType > | to1DSmallSpan () |
| 1D view on the instance (only if rank == 1) | |
| constexpr SmallSpan< const DataType > | to1DSmallSpan () const |
| Constant 1D view on the instance (only if rank == 1). | |
| constexpr SmallSpan< const DataType > | to1DConstSmallSpan () const |
| Constant 1D view on the instance (only if rank == 1). | |
| DataType * | _internalData () |
Static Public Member Functions | |
| static constexpr int | rank () |
| Number of dimensions of the array. | |
| static constexpr Int32 | nbDimension () |
| Number of dimensions. | |
Multi-dimensional arrays for numerical types accessible on accelerators.
The current implementation supports arrays up to 4 dimensions. Element access is done via the 'operator()'.
For more information, refer to the page Usage of the NumArray class.
Definition at line 56 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ArrayBoundsIndexType = typename MDSpanType::ArrayBoundsIndexType |
Definition at line 73 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ArrayWrapper = Impl::NumArrayContainer<DataType> |
Definition at line 72 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ConstMDSpanType = MDSpan<const DataType, ExtentsType, LayoutPolicy> |
Definition at line 70 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::DynamicDimsType = typename ExtentsType::DynamicDimsType |
Definition at line 69 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ExtentsType = Extents |
Definition at line 67 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::LayoutPolicyType = LayoutPolicy |
Definition at line 75 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::MDSpanType = MDSpan<DataType, ExtentsType, LayoutPolicy> |
Definition at line 71 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ThatClass = NumArray<DataType, Extents, LayoutPolicy> |
Definition at line 68 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::value_type = DataType |
Definition at line 74 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an empty array.
Definition at line 88 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineexplicit |
Constructs an array by specifying the dimension list directly.
Definition at line 94 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array by specifying the dimension list directly.
Definition at line 100 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineexplicit |
Creates an empty array using the memory resource r.
Definition at line 106 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 4 dynamic values.
Definition at line 113 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 4 dynamic values.
Definition at line 120 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 3 dynamic values.
Definition at line 127 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 3 dynamic values.
Definition at line 132 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 2 dynamic values.
Definition at line 138 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 2 dynamic values.
Definition at line 143 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineexplicit |
Constructs an array with 1 dynamic value.
Definition at line 149 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array with 1 dynamic value.
Definition at line 154 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array from predefined values (only dynamic 2D arrays).
The values are stored contiguously in memory, so the list alist must have a layout corresponding to this class.
Definition at line 165 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an array from predefined values (only dynamic 1D arrays).
Definition at line 173 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an instance from a view (only dynamic 1D arrays).
Definition at line 181 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constructs an instance from a view (only dynamic 1D arrays).
Definition at line 189 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 195 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 203 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 704 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
View as bytes.
Definition at line 262 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant view as bytes.
Definition at line 264 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 257 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 676 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::copy(), Arcane::NumArray< DataType, MDDim1 >::copy(), Arcane::NumArray< DataType, MDDim1 >::operator ConstMDSpanType(), and Arcane::Accelerator::viewIn().
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 667 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance.
This operation is valid regardless of the memory associated with the instance.
Definition at line 475 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::copy().
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 559 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null, in which case the copy is performed on the host. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 545 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance.
This operation is valid regardless of the memory associated with the instance.
Definition at line 467 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::copy().
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null, in which case the copy is performed on the host. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 530 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 500 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance.
This operation is valid regardless of the memory associated with the instance.
Definition at line 456 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::copy(), Arcane::NumArray< DataType, MDDim1 >::NumArray(), Arcane::NumArray< DataType, MDDim1 >::NumArray(), and Arcane::NumArray< DataType, MDDim1 >::operator=().
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null, in which case the copy is performed on the host. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 515 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copies the values from rhs into the instance via the queue queue.
This operation is valid regardless of the memory associated with the instance. queue can be null. If the queue is asynchronous, it must be synchronized before the instance can be used.
Definition at line 486 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Debug name (null if no name specified).
Definition at line 277 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the first dimension.
Definition at line 282 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the second dimension.
Definition at line 284 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the third dimension.
Definition at line 286 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the fourth dimension.
Definition at line 288 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the first dimension.
Definition at line 291 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the second dimension.
Definition at line 293 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the third dimension.
Definition at line 295 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the fourth dimension.
Definition at line 297 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Values of the dimensions.
Definition at line 252 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 253 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the array values with v.
Definition at line 382 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the instance elements with the value v using the queue queue.
queue can be null, in which case the filling is done on the host.
Definition at line 431 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the instance elements with the value v using the queue queue.
queue can be null, in which case the filling is done on the host.
Definition at line 419 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the index array values using the queue queue with the value v.
The memory associated with the instance must be accessible from the queue queue.
Definition at line 407 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the index array values using the queue queue with the value v.
The memory associated with the instance must be accessible from the queue queue. queue can be null, in which case the filling is done on the host.
Definition at line 395 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the array values with v.
The operation is performed on the host, so the memory associated with the instance must be accessible on the host.
Definition at line 442 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::fill().
|
inline |
Multi-dimensional view on the instance.
Definition at line 670 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::operator MDSpanType(), Arcane::Accelerator::viewInOut(), and Arcane::Accelerator::viewOut().
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 673 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Associated memory allocator.
Definition at line 267 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 260 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 259 of file arccore/src/common/arccore/common/NumArray.h.
|
inlinestaticconstexpr |
Number of dimensions.
Definition at line 250 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a constant multi-dimensional view on the instance.
Definition at line 687 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a multi-dimensional view on the instance.
Definition at line 685 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a constant 1D view on the instance (only if rank == 1).
Definition at line 692 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a 1D view on the instance (only if rank == 1).
Definition at line 690 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Modifiable reference for element idx.
Definition at line 618 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant reference for element idx.
Definition at line 613 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i.
Definition at line 608 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i.
Definition at line 606 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j.
Definition at line 601 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j.
Definition at line 596 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k.
Definition at line 590 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j,k.
Definition at line 585 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k,l.
Definition at line 579 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j,k,l.
Definition at line 574 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copy assignment operator.
Definition at line 219 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Retrieves a reference for element i.
Definition at line 567 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i.
Definition at line 569 of file arccore/src/common/arccore/common/NumArray.h.
|
inlinestaticconstexpr |
Number of dimensions of the array.
Definition at line 83 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 361 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 302 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::NumArray(), and Arcane::NumArray< DataType, MDDim1 >::NumArray().
|
inline |
Resizes the array without keeping current values.
Definition at line 324 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 317 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 310 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 367 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 354 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 348 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 342 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array.
Definition at line 336 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::resize(), Arcane::NumArray< DataType, MDDim1 >::resize(), Arcane::NumArray< DataType, MDDim1 >::resize(), Arcane::NumArray< DataType, MDDim1 >::resize(), Arcane::NumArray< DataType, MDDim1 >::resizeDestructive(), Arcane::NumArray< DataType, MDDim1 >::resizeDestructive(), Arcane::NumArray< DataType, MDDim1 >::resizeDestructive(), and Arcane::NumArray< DataType, MDDim1 >::resizeDestructive().
|
inline |
Positions the value for element idx.
Definition at line 650 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i.
Definition at line 646 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j.
Definition at line 640 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k.
Definition at line 634 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k,l.
Definition at line 628 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Sets the array name for debug information.
This name can be used, for example, in listing displays.
Definition at line 274 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Multi-dimensional view on the instance.
Definition at line 659 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 663 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Swaps the data with rhs.
Definition at line 238 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Constant 1D view on the instance (only if rank == 1).
Definition at line 699 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
1D view on the instance (only if rank == 1)
Definition at line 695 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::Accelerator::Impl::GenericPartitionerIf::apply().
|
inlineconstexpr |
Constant 1D view on the instance (only if rank == 1).
Definition at line 697 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
1D view on the instance
Definition at line 682 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant 1D view on the instance.
Definition at line 679 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::bytes(), Arcane::NumArray< DataType, MDDim1 >::bytes(), Arcane::NumArray< Arcane::Materials::ConstituentItemLocalId, Arcane::ExtentsV< Int32, DynExtent > >::operator SmallSpan< Arcane::Materials::ConstituentItemLocalId >(), and Arcane::NumArray< Arcane::Materials::ConstituentItemLocalId, Arcane::ExtentsV< Int32, DynExtent > >::operator SmallSpan< const Arcane::Materials::ConstituentItemLocalId >().
|
inlineconstexpr |
Total number of elements in the array.
Definition at line 248 of file arccore/src/common/arccore/common/NumArray.h.