Fixed-size array that can be used on GPU. More...
#include <AMReX_Array.H>
Public Types | |
| using | value_type = T |
| using | reference_type = T & |
Public Member Functions | |
| __host__ __device__ const T & | operator[] (int i) const noexcept |
| __host__ __device__ T & | operator[] (int i) noexcept |
| __host__ __device__ const T * | data () const noexcept |
| __host__ __device__ T * | data () noexcept |
| __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__ void | fill (const T &value) noexcept |
| __host__ __device__ constexpr T | sum () const noexcept |
| __host__ __device__ T | product () const noexcept |
| __host__ __device__ GpuArray< T, N > & | operator+= (GpuArray< T, N > const &a) noexcept |
Static Public Member Functions | |
| __host__ static __device__ constexpr unsigned int | size () noexcept |
Public Attributes | |
| T | arr [amrex::max(N, 1U)] |
Fixed-size array that can be used on GPU.
| using amrex::GpuArray< T, N >::reference_type = T& |
| using amrex::GpuArray< T, N >::value_type = T |
|
inlinenoexcept |
Returns a const pointer address to the first element of the GpuArray object.
|
inlinenoexcept |
Returns a pointer address to the first element of the GpuArray object.
|
inlinenoexcept |
Returns a const pointer to the underlying data of a GpuArray object.
|
inlinenoexcept |
Returns a pointer to the underlying data of a GpuArray object.
|
inlinenoexcept |
Returns a const pointer address right after the last element of the GpuArray object.
|
inlinenoexcept |
Returns a pointer address right after the last element of the GpuArray object.
|
inlinenoexcept |
Fills in all of the elements in the GpuArray object to the same value.
| value | The fill value |
|
inlinenoexcept |
|
inlinenoexcept |
GpuArray elements are indexed using square brackets, as with any other array.
|
inlinenoexcept |
GpuArray elements are indexed using square brackets, as with any other array.
|
inlinenoexcept |
Returns the product of all elements in the GpuArray object.
|
inlinestaticconstexprnoexcept |
Returns the number of elements in the GpuArray object as an unsigned integer.
|
inlineconstexprnoexcept |
Returns the sum of all elements in the GpuArray object.
| T amrex::GpuArray< T, N >::arr[amrex::max(N, 1U)] |