Template Class FArrayKokkos

Class Documentation

template<typename T, typename Layout = DefaultLayout, typename ExecSpace = DefaultExecSpace, typename MemoryTraits = void>
class FArrayKokkos

Kokkos version of the serial FArray class.

This is the Kokkos version of the serial FArray class. Its usage is analagous to that of the serial FArr5class, and it is to be used in Kokkos-specific code.

Public Functions

FArrayKokkos()

Default constructor.

FArrayKokkos(size_t dim0, const std::string &tag_string = DEFAULTSTRINGARRAY)

An overloaded constructor used to construct an 1D FArrayKokkos object.

Parameters

dim0 – the length of the first dimension

FArrayKokkos(size_t dim0, size_t dim1, const std::string &tag_string = DEFAULTSTRINGARRAY)

An overloaded constructor used to construct a 2D FArrayKokkos object.

Parameters
  • dim0 – the length of the first dimension

  • dim1 – the length of the second dimension

FArrayKokkos(size_t dim0, size_t dim1, size_t dim2, const std::string &tag_string = DEFAULTSTRINGARRAY)

An overloaded constructor used to construct a 3D FArrayKokkos object.

Parameters
  • dim0 – the length of the first dimension

  • dim1 – the length of the second dimension

  • dim2 – the length of the third dimension

FArrayKokkos(size_t dim0, size_t dim1, size_t dim2, size_t dim3, const std::string &tag_string = DEFAULTSTRINGARRAY)
FArrayKokkos(size_t dim0, size_t dim1, size_t dim2, size_t dim3, size_t dim4, const std::string &tag_string = DEFAULTSTRINGARRAY)
FArrayKokkos(size_t dim0, size_t sone_dim2, size_t dim2, size_t dim3, size_t dim4, size_t dim5, const std::string &tag_string = DEFAULTSTRINGARRAY)
FArrayKokkos(size_t dim0, size_t sone_dim2, size_t dim2, size_t dim3, size_t dim4, size_t dim5, size_t dim6, const std::string &tag_string = DEFAULTSTRINGARRAY)
KOKKOS_INLINE_FUNCTION T & operator() (size_t i) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j, size_t k) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j, size_t k, size_t l) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j, size_t k, size_t l, size_t m) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j, size_t k, size_t l, size_t m, size_t n) const
KOKKOS_INLINE_FUNCTION T & operator() (size_t i, size_t j, size_t k, size_t l, size_t m, size_t n, size_t o) const
KOKKOS_INLINE_FUNCTION FArrayKokkos & operator= (const FArrayKokkos< T, Layout, ExecSpace, MemoryTraits > &temp)
KOKKOS_INLINE_FUNCTION size_t size () const
KOKKOS_INLINE_FUNCTION size_t extent () const
KOKKOS_INLINE_FUNCTION size_t dims (size_t i) const
KOKKOS_INLINE_FUNCTION size_t order () const
KOKKOS_INLINE_FUNCTION T * pointer () const
KOKKOS_INLINE_FUNCTION TArray1D get_kokkos_view () const
KOKKOS_INLINE_FUNCTION ~FArrayKokkos()