AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Provides a wrapper for a compile time sized array, similar to std::array. This class is needed because NVCC doesn't caputure standard stack arrays in device lambdas. Furthermore we can't use std::array becuase it is not host-device decorated. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/core/StackArray.hpp>
Public Member Functions | |
AXOM_HOST_DEVICE T & | operator[] (IndexType i) noexcept |
Accessor, returns a reference to the value at the given index. More... | |
AXOM_HOST_DEVICE constexpr const T & | operator[] (IndexType i) const noexcept |
AXOM_HOST_DEVICE | operator T* () noexcept |
User defined conversion to a raw pointer. More... | |
AXOM_HOST_DEVICE constexpr | operator const T * () const noexcept |
Public Attributes | |
T | m_data [N] |
Provides a wrapper for a compile time sized array, similar to std::array. This class is needed because NVCC doesn't caputure standard stack arrays in device lambdas. Furthermore we can't use std::array becuase it is not host-device decorated.
T | the type of the values to hold. |
N | the number of values in the array. |
|
inlinenoexcept |
Accessor, returns a reference to the value at the given index.
[in] | i | the index to access. |
|
inlinenoexcept |
|
inlinenoexcept |
User defined conversion to a raw pointer.
References AXOM_HOST_DEVICE, and axom::StackArray< T, N >::m_data.
|
inlinenoexcept |
References axom::StackArray< T, N >::m_data.
T axom::StackArray< T, N >::m_data[N] |