Default DataLayout implementation that allows for runtime sizing. More...
#include <Phalanx_DataLayout_DynamicLayout.hpp>
Public Types | |
using | KokkosLayout = PHX::DataLayout::KokkosLayoutType |
Public Types inherited from PHX::DataLayout | |
enum | KokkosLayoutType { Left, Right, Default } |
Defines the kokkos layout to use. Default uses the recommended layout from the default device execution space. | |
typedef PHX::Device::size_type | size_type |
Public Member Functions | |
Layout (const std::string &id="") | |
template<typename... extent_pack> | |
Layout (const std::string &id, extent_pack...extents) | |
template<typename... extent_pack> | |
void | setExtents (extent_pack...extents) |
virtual void | setKokkosLayout (const PHX::DataLayout::KokkosLayoutType &klt) |
virtual bool | operator== (const DataLayout &src) const override |
virtual PHX::Device::size_type | rank () const override |
virtual PHX::Device::size_type | dimension (size_type ordinal) const override |
virtual PHX::Device::size_type | extent (size_type ordinal) const override |
virtual int | extent_int (size_type ordinal) const override |
virtual void | dimensions (std::vector< PHX::Device::size_type > &dim) const override |
virtual PHX::Device::size_type | size () const override |
virtual std::string | name (size_type ordinal) const override |
virtual void | names (std::vector< std::string > &names) const override |
virtual PHX::DataLayout::KokkosLayoutType | kokkosLayout () const override |
virtual std::string | identifier () const override |
Unique name identifier that can be used for strict weak ordering in stl std::map keys. | |
virtual void | print (std::ostream &os, int offset) const override |
Public Member Functions inherited from PHX::DataLayout | |
virtual bool | operator!= (const DataLayout &left) const |
template<typename... extent_pack> | |
void | setExtents (extent_pack...extents) |
Protected Member Functions | |
virtual void | setExtentsOnDerivedClass (const std::vector< PHX::Device::size_type > &extents) override |
Default DataLayout implementation that allows for runtime sizing.