Multi-dimensional arrays for numerical types accessible on accelerators. More...
Public Types | |
| using | ExtentsType = Extents |
| using | ExtentIndexType = Extents::ExtentIndexType |
| using | ThatClass = NumArray<DataType, Extents, LayoutPolicy> |
| using | DynamicDimsType = ExtentsType::DynamicDimsType |
| using | ConstMDSpanType = MDSpan<const DataType, ExtentsType, LayoutPolicy> |
| using | MDSpanType = MDSpan<DataType, ExtentsType, LayoutPolicy> |
| using | ArrayWrapper = Arcane::Impl::NumArrayContainer<DataType> |
| using | ArrayBoundsIndexType = 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 (ExtentIndexType dim1_size) | |
| Constructs an array with 1 dynamic value. | |
| NumArray (ExtentIndexType 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 (MDSpanType mdspan) | |
| Constructs an instance from a MDSpan (values will be copied). | |
| 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 ExtentIndexType | dim1Size () const |
| Value of the first dimension. | |
| constexpr ExtentIndexType | dim2Size () const |
| Value of the second dimension. | |
| constexpr ExtentIndexType | dim3Size () const |
| Value of the third dimension. | |
| constexpr ExtentIndexType | dim4Size () const |
| Value of the fourth dimension. | |
| constexpr ExtentIndexType | extent0 () const |
| Value of the first dimension. | |
| constexpr ExtentIndexType | extent1 () const |
| Value of the second dimension. | |
| constexpr ExtentIndexType | extent2 () const |
| Value of the third dimension. | |
| constexpr ExtentIndexType | extent3 () const |
| Value of the fourth dimension. | |
| void | resize (ExtentIndexType dim1_size) |
| Resizes the array without keeping current values. | |
| void | resize (ExtentIndexType dim1_size, ExtentIndexType dim2_size, ExtentIndexType dim3_size, ExtentIndexType dim4_size) |
| Resizes the array without keeping current values. | |
| void | resize (ExtentIndexType dim1_size, ExtentIndexType dim2_size, ExtentIndexType dim3_size) |
| Resizes the array without keeping current values. | |
| void | resize (ExtentIndexType dim1_size, ExtentIndexType dim2_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (ExtentIndexType dim1_size, ExtentIndexType dim2_size, ExtentIndexType dim3_size, ExtentIndexType dim4_size) |
| Resizes the array. | |
| void | resizeDestructive (ExtentIndexType dim1_size, ExtentIndexType dim2_size, ExtentIndexType dim3_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (ExtentIndexType dim1_size, ExtentIndexType dim2_size) |
| Resizes the array without keeping current values. | |
| void | resizeDestructive (ExtentIndexType 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 (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 (ConstMDSpanType 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[] (ExtentIndexType i) |
| Retrieves a reference for element i. | |
| DataType | operator[] (ExtentIndexType i) const |
| Value for element i. | |
| DataType | operator() (ExtentIndexType i, ExtentIndexType j, ExtentIndexType k, ExtentIndexType l) const |
| Value for element i,j,k,l. | |
| DataType & | operator() (ExtentIndexType i, ExtentIndexType j, ExtentIndexType k, ExtentIndexType l) |
| Positions the value for element i,j,k,l. | |
| DataType | operator() (ExtentIndexType i, ExtentIndexType j, ExtentIndexType k) const |
| Value for element i,j,k. | |
| DataType & | operator() (ExtentIndexType i, ExtentIndexType j, ExtentIndexType k) |
| Positions the value for element i,j,k. | |
| DataType | operator() (ExtentIndexType i, ExtentIndexType j) const |
| Value for element i,j. | |
| DataType & | operator() (ExtentIndexType i, ExtentIndexType j) |
| Positions the value for element i,j. | |
| DataType | operator() (ExtentIndexType i) const |
| Value for element i. | |
| DataType & | operator() (ExtentIndexType 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 () |
| constexpr SmallSpan< const DataType > | to1DSmallSpan () const |
| constexpr SmallSpan< const DataType > | to1DConstSmallSpan () const |
| constexpr auto | toSmallSpan () |
| 1D or 2D view on the instance (only if rank == 1 or rank == 2) | |
| constexpr auto | toSmallSpan () const |
| Constant 1D or 2D view on the instance (only if rank == 1 or rank == 2). | |
| constexpr auto | toConstSmallSpan () const |
| Constant 1D or 2D view on the instance (only if rank == 1 or rank == 2). | |
| DataType * | data () |
| Base pointer of the array. | |
| const DataType * | data () const |
| Base pointer of the array. | |
| ArrayIterator< DataType * > | begin () |
| Mutable iterator for the first element of the array. | |
| ArrayIterator< DataType * > | end () |
| Mutable iterator following the last element of the array. | |
| ArrayIterator< const DataType * > | begin () const |
| Read-only iterator for the first element of the array. | |
| ArrayIterator< const DataType * > | end () const |
| Read-only iterator following the last element of the array. | |
| DataType * | _internalData () |
Static Public Member Functions | |
| static constexpr int | rank () |
| Number of dimensions of the array. | |
| static constexpr Int32 | nbDimension () |
| Number of dimensions. | |
Private Member Functions | |
| void | _updateSpanPointerFromData () |
| void | _resizeAndCopy (ConstMDSpanType rhs, eMemoryResource input_ressource, const RunQueue *queue) |
| void | _resize () |
| Resizes the array based on the values of m_span.extents(). | |
| void | _resizeInit () |
| Possible allocation during initialization. | |
Private Attributes | |
| MDSpanType | m_span |
| ArrayWrapper | m_data |
| Int64 | m_total_nb_element = 0 |
Additional Inherited Members | |
| Static Private Member Functions inherited from Arcane::Impl::NumArrayBaseCommon | |
| static MemoryAllocationOptions | _getDefaultAllocator () |
| static MemoryAllocationOptions | _getDefaultAllocator (eMemoryResource r) |
| static void | _checkHost (eMemoryResource r) |
| static void | _memoryAwareCopy (Span< const std::byte > from, eMemoryResource from_mem, Span< std::byte > to, eMemoryResource to_mem, const RunQueue *queue) |
| static void | _memoryAwareFill (Span< std::byte > to, Int64 nb_element, const void *fill_address, Int32 datatype_size, SmallSpan< const Int32 > indexes, const RunQueue *queue) |
| static void | _memoryAwareFill (Span< std::byte > to, Int64 nb_element, const void *fill_address, Int32 datatype_size, const RunQueue *queue) |
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 arcanedoc_core_types_numarray.
Definition at line 55 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ArrayBoundsIndexType = MDSpanType::ArrayBoundsIndexType |
Definition at line 73 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ArrayWrapper = Arcane::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 = ExtentsType::DynamicDimsType |
Definition at line 69 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ExtentIndexType = Extents::ExtentIndexType |
Definition at line 67 of file arccore/src/common/arccore/common/NumArray.h.
| using Arcane::NumArray< DataType, Extents, LayoutPolicy >::ExtentsType = Extents |
Definition at line 66 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.
|
inlineexplicit |
Constructs an instance from a view (only dynamic 1D arrays).
Definition at line 181 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineexplicit |
Constructs an instance from a view (only dynamic 1D arrays).
Definition at line 189 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineexplicit |
Constructs an instance from a MDSpan (values will be copied).
Definition at line 196 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 201 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 209 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 712 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineprivate |
Resizes the array based on the values of m_span.extents().
Definition at line 735 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::resize(), and Arcane::NumArray< DataType, MDDim1 >::resizeDestructive().
|
inlineprivate |
Definition at line 727 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineprivate |
Possible allocation during initialization.
An allocation is needed during initialization with the default constructor if all dimensions are static.
Definition at line 748 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::NumArray(), and Arcane::NumArray< DataType, MDDim1 >::NumArray().
|
inlineprivate |
Definition at line 722 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Mutable iterator for the first element of the array.
Definition at line 689 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::begin().
|
inline |
Read-only iterator for the first element of the array.
Definition at line 699 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
View as bytes.
Definition at line 268 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant view as bytes.
Definition at line 270 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 263 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 642 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 633 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 470 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 525 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 511 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 462 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(), 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 496 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 481 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Base pointer of the array.
Definition at line 681 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Base pointer of the array.
Definition at line 684 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Debug name (null if no name specified).
Definition at line 283 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the first dimension.
Definition at line 288 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the second dimension.
Definition at line 290 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the third dimension.
Definition at line 292 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the fourth dimension.
Definition at line 294 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Mutable iterator following the last element of the array.
Definition at line 694 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::end().
|
inline |
Read-only iterator following the last element of the array.
Definition at line 704 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the first dimension.
Definition at line 297 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the second dimension.
Definition at line 299 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the third dimension.
Definition at line 301 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Value of the fourth dimension.
Definition at line 303 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Values of the dimensions.
Definition at line 258 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 259 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Fills the array values with v.
Definition at line 388 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 437 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 425 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 413 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 401 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 448 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 636 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 639 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Associated memory allocator.
Definition at line 273 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 266 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Definition at line 265 of file arccore/src/common/arccore/common/NumArray.h.
|
inlinestaticconstexpr |
Number of dimensions.
Definition at line 256 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a constant multi-dimensional view on the instance.
Definition at line 653 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Conversion to a multi-dimensional view on the instance.
Definition at line 651 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 658 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 656 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Modifiable reference for element idx.
Definition at line 584 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant reference for element idx.
Definition at line 579 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i.
Definition at line 574 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i.
Definition at line 572 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j.
Definition at line 567 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j.
Definition at line 562 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k.
Definition at line 556 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j,k.
Definition at line 551 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k,l.
Definition at line 545 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i,j,k,l.
Definition at line 540 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Copy assignment operator.
Definition at line 225 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Retrieves a reference for element i.
Definition at line 533 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Value for element i.
Definition at line 535 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 367 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 308 of file arccore/src/common/arccore/common/NumArray.h.
Referenced by Arcane::NumArray< DataType, MDDim1 >::_resizeInit(), Arcane::NumArray< DataType, MDDim1 >::NumArray(), and Arcane::NumArray< DataType, MDDim1 >::NumArray().
|
inline |
Resizes the array without keeping current values.
Definition at line 330 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 323 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 316 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 373 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Resizes the array without keeping current values.
Definition at line 360 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.
Definition at line 342 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 616 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i.
Definition at line 612 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j.
Definition at line 606 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k.
Definition at line 600 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Positions the value for element i,j,k,l.
Definition at line 594 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 280 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Multi-dimensional view on the instance.
Definition at line 625 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant multi-dimensional view on the instance.
Definition at line 629 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Swaps the data with rhs.
Definition at line 244 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Constant 1D view on the instance (only if rank == 1) ARCCORE_DEPRECATED_REASON("Y2026: Use toConstSmallSpan() instead")
Definition at line 668 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
1D view on the instance (only if rank == 1) ARCCORE_DEPRECATED_REASON("Y2026: Use toSmallSpan() instead")
Definition at line 662 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) ARCCORE_DEPRECATED_REASON("Y2026: Use toSmallSpan() instead")
Definition at line 665 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
1D view on the instance
Definition at line 648 of file arccore/src/common/arccore/common/NumArray.h.
|
inline |
Constant 1D view on the instance.
Definition at line 645 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 |
Constant 1D or 2D view on the instance (only if rank == 1 or rank == 2).
Definition at line 676 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
1D or 2D view on the instance (only if rank == 1 or rank == 2)
Definition at line 672 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Constant 1D or 2D view on the instance (only if rank == 1 or rank == 2).
Definition at line 674 of file arccore/src/common/arccore/common/NumArray.h.
|
inlineconstexpr |
Total number of elements in the array.
Definition at line 254 of file arccore/src/common/arccore/common/NumArray.h.
|
private |
Definition at line 717 of file arccore/src/common/arccore/common/NumArray.h.
|
private |
Definition at line 716 of file arccore/src/common/arccore/common/NumArray.h.
|
private |
Definition at line 718 of file arccore/src/common/arccore/common/NumArray.h.