![]() |
Block-Structured AMR Software Framework
|
A GPU-compatible one-dimensional array. More...
#include <AMReX_Array.H>
Public Member Functions | |
| __host__ __device__ const T * | begin () const noexcept |
| __host__ __device__ const T * | end () const noexcept |
| __host__ __device__ T * | begin () noexcept |
| __host__ __device__ T * | end () noexcept |
| __host__ __device__ const T & | operator() (int i) const noexcept |
| __host__ __device__ T & | operator() (int i) noexcept |
| __host__ __device__ constexpr T | sum () const noexcept |
| __host__ __device__ constexpr T | product () const noexcept |
Static Public Member Functions | |
| __host__ static __device__ constexpr unsigned int | size () noexcept |
| __host__ static __device__ constexpr int | lo () noexcept |
| __host__ static __device__ constexpr int | hi () noexcept |
| __host__ static __device__ constexpr unsigned int | len () noexcept |
A GPU-compatible one-dimensional array.
Array1D is a C-style array wrapper in a struct. It has no user-declared constructors. It's a trivial aggregate with a standard layout.
| T | Value data type |
| XLO | Index for inclusive lower bound. Can be non-zero or negative. |
| XHI | Index for inclusive 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.