|
| __host__ __device__ | Span2 (pointer ptr, Int64 dim1_size, Int64 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2 () |
| | Creates an empty 2D view.
|
| | Span2 (const Array2View< value_type > &from) |
| | Copy constructor from another view.
|
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| | Span2 (const ConstArray2View< X > &from) |
| | Span2 (const SmallSpan2< T > &from) |
| | Copy constructor from a 'SmallSpan'.
|
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| __host__ __device__ | Span2 (const Span2< X > &from) |
| template<typename X, typename = std::enable_if_t<std::is_same_v<X, value_type>>> |
| __host__ __device__ | Span2 (const SmallSpan2< X > &from) |
| __host__ __device__ Span< ElementType > | operator[] (Int64 i) const |
| __host__ __device__ Span< ElementType > | operator() (Int64 i) const |
| constexpr __host__ __device__ reference | operator() (Int64 i, Int64 j) const |
| __host__ __device__ | Span2Impl (pointer ptr, Int64 dim1_size, Int64 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2Impl () |
| | Creates an empty 2D view.
|
| | Span2Impl (const ConstArray2View< X > &from) |
| __host__ __device__ | Span2Impl (const Span2< X > &from) |
| constexpr __host__ __device__ Int64 | dim1Size () const |
| | Number of elements in the first dimension.
|
| constexpr __host__ __device__ Int64 | dim2Size () const |
| | Number of elements in the second dimension.
|
| constexpr __host__ __device__ Int64 | totalNbElement () const |
| | Total number of elements.
|
| constexpr __host__ __device__ SpanImpl< ElementType, Int64 > | operator[] (Int64 i) const |
| constexpr __host__ __device__ SpanImpl< ElementType, Int64 > | operator() (Int64 i) const |
| constexpr __host__ __device__ reference | operator() (Int64 i, Int64 j) const |
| constexpr __host__ __device__ ElementType | item (Int64 i, Int64 j) const |
| | Value of the element [i][j].
|
| constexpr __host__ __device__ ElementType | setItem (Int64 i, Int64 j, const ElementType &value) |
| | Positions the element [i][j] at value.
|
| constexpr view_type | smallView () |
| | Constant view of this view.
|
| constexpr ConstArrayView< value_type > | constSmallView () const |
| | Constant view of this view.
|
| constexpr ElementType * | unguardedBasePointer () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ ElementType * | data () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ const ElementType * | data () const |
| | Pointer to the allocated memory.
|
| __host__ __device__ | Span2Impl (pointer ptr, Int64 dim1_size, Int64 dim2_size) |
| | Creates a 2D view of dimension [dim1_size][dim2_size].
|
| __host__ __device__ | Span2Impl () |
| | Creates an empty 2D view.
|
| | Span2Impl (const ConstArray2View< X > &from) |
| __host__ __device__ | Span2Impl (const Span2< X > &from) |
| constexpr __host__ __device__ Int64 | dim1Size () const |
| | Number of elements in the first dimension.
|
| constexpr __host__ __device__ Int64 | dim2Size () const |
| | Number of elements in the second dimension.
|
| constexpr __host__ __device__ Int64 | totalNbElement () const |
| | Total number of elements.
|
| constexpr __host__ __device__ SpanImpl< ElementType, Int64 > | operator[] (Int64 i) const |
| constexpr __host__ __device__ SpanImpl< ElementType, Int64 > | operator() (Int64 i) const |
| constexpr __host__ __device__ reference | operator() (Int64 i, Int64 j) const |
| constexpr __host__ __device__ ElementType | item (Int64 i, Int64 j) const |
| | Value of the element [i][j].
|
| constexpr __host__ __device__ ElementType | setItem (Int64 i, Int64 j, const ElementType &value) |
| | Positions the element [i][j] at value.
|
| constexpr view_type | smallView () |
| | Constant view of this view.
|
| constexpr ConstArrayView< value_type > | constSmallView () const |
| | Constant view of this view.
|
| constexpr ElementType * | unguardedBasePointer () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ ElementType * | data () |
| | Pointer to the allocated memory.
|
| constexpr __host__ __device__ const ElementType * | data () const |
| | Pointer to the allocated memory.
|
template<class T,
Int64 Extent1,
Int64 Extent2>
class Arcane::Span2< T, Extent1, Extent2 >
View for a 2D array whose size is an 'Int64'.
Like any view, an instance of this class is only valid as long as the container it originated from does not change its number of elements.
Definition at line 322 of file Span2.h.