#include <AMReX_Array.H>
Public Member Functions | |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T * | begin () const noexcept |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T * | end () const noexcept |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T * | begin () noexcept |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T * | end () noexcept |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T & | operator() (int i) const noexcept |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & | operator() (int i) noexcept |
AMREX_GPU_HOST_DEVICE constexpr AMREX_FORCE_INLINE T | sum () const noexcept |
AMREX_GPU_HOST_DEVICE constexpr AMREX_FORCE_INLINE T | product () const noexcept |
Static Public Member Functions | |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE unsigned int | size () noexcept |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE int | lo () noexcept |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE int | hi () noexcept |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE unsigned int | len () noexcept |
Public Attributes | |
T | arr [(XHI-XLO+1)] |
Array2D and Array3D objects can be indexed according to Fortran column-major order (first index moving fastest) or C/C++ row-major order (last index moving fastest). If not specified, Fortran order is assumed. A GPU-compatible one-dimensional array.
XLO | Index for lower bound. Can be other than 0. |
XHI | Index for upper bound. |
|
inlinenoexcept |
Returns a const
pointer address to the first element of the Array1D object.
|
inlinenoexcept |
Returns a pointer address to the first element of the Array1D object.
|
inlinenoexcept |
Returns a const
pointer address right after the last element of the Array1D object.
|
inlinenoexcept |
Returns a pointer address right after the last element of the Array1D object.
|
inlinestaticconstexprnoexcept |
Returns the index of the upper bound of the Array1D object.
|
inlinestaticconstexprnoexcept |
Returns the number of elements in the Array1D object as an unsigned integer.
|
inlinestaticconstexprnoexcept |
Returns the index of the lower bound of the Array1D object. Can be other than 0.
|
inlinenoexcept |
The elements of an Array1D object are accessed using parentheses, e.g. array(i)
, instead of using square brackets.
|
inlinenoexcept |
The elements of an Array1D object are accessed using parentheses, e.g. array(i), instead of using square brackets.
|
inlineconstexprnoexcept |
Returns the product of all elements in the Array1D object.
|
inlinestaticconstexprnoexcept |
Returns the number of elements in the Array1D object as an unsigned integer.
|
inlineconstexprnoexcept |
Returns the sum of all elements in the Array1D object.
T amrex::Array1D< T, XLO, XHI >::arr[(XHI-XLO+1)] |
Array1D is implemented as a fixed-size array. Hence, no constructor or destructor is given.