#include <AMReX_Array.H>
|
| __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 |
| |
|
| __host__ static __device__ constexpr unsigned int | size () noexcept |
| |
◆ reference_type
template<class T , unsigned int N>
◆ value_type
template<class T , unsigned int N>
◆ begin() [1/2]
template<class T , unsigned int N>
Returns a const pointer address to the first element of the GpuArray object.
◆ begin() [2/2]
template<class T , unsigned int N>
Returns a pointer address to the first element of the GpuArray object.
◆ data() [1/2]
template<class T , unsigned int N>
Returns a const pointer to the underlying data of a GpuArray object.
◆ data() [2/2]
template<class T , unsigned int N>
Returns a pointer to the underlying data of a GpuArray object.
◆ end() [1/2]
template<class T , unsigned int N>
Returns a const pointer address right after the last element of the GpuArray object.
◆ end() [2/2]
template<class T , unsigned int N>
Returns a pointer address right after the last element of the GpuArray object.
◆ fill()
template<class T , unsigned int N>
Fills in all of the elements in the GpuArray object to the same value.
- Parameters
-
◆ operator+=()
template<class T , unsigned int N>
◆ operator[]() [1/2]
template<class T , unsigned int N>
| __host__ __device__ const T & amrex::GpuArray< T, N >::operator[] |
( |
int |
i | ) |
const |
|
inlinenoexcept |
GpuArray elements are indexed using square brackets, as with any other array.
◆ operator[]() [2/2]
template<class T , unsigned int N>
GpuArray elements are indexed using square brackets, as with any other array.
◆ product()
template<class T , unsigned int N>
Returns the product of all elements in the GpuArray object.
◆ size()
template<class T , unsigned int N>
| __host__ static __device__ constexpr unsigned int amrex::GpuArray< T, N >::size |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
Returns the number of elements in the GpuArray object as an unsigned integer.
◆ sum()
template<class T , unsigned int N>
Returns the sum of all elements in the GpuArray object.
◆ arr
template<class T , unsigned int N>
The documentation for this struct was generated from the following file: