10 #ifndef STOKHOS_STATIC_STANDARD_STORAGE_HPP
11 #define STOKHOS_STATIC_STANDARD_STORAGE_HPP
13 #include "Sacado_StaticArrayTraits.hpp"
19 template <
typename ordinal_type,
typename value_type,
int Num>
27 typedef Sacado::ss_array<value_type>
ss;
30 template <
typename ord_t,
typename val_t>
110 #endif // STOKHOS_STANDARD_STORAGE_HPP
~StaticStandardStorage()
Destructor.
pointer coeff()
Get coefficients.
Sacado::ss_array< value_type > ss
const_reference operator[](const ordinal_type &i) const
Coefficient access (avoid if possible)
Turn StaticStandardStorage into a meta-function class usable with mpl::apply.
StaticStandardStorage & operator=(const StaticStandardStorage &s)
Assignment operator.
ordinal_type sz
Size of array used.
std::enable_if< Kokkos::is_view_uq_pce< Kokkos::View< XD, XP...> >::value >::type fill(const Kokkos::View< XD, XP...> &x, const typename Kokkos::View< XD, XP...>::non_const_value_type &val)
Statically allocated storage class.
void resize(const ordinal_type &sz_)
Resize to new size (values are preserved)
const_pointer coeff() const
Get coefficients.
void load(pointer v)
Load values to an array of values.
void init(const_pointer v, const ordinal_type &sz_=0)
Initialize values to an array of values.
value_type coeff_[Num]
Coefficient values.
StaticStandardStorage(const StaticStandardStorage &s)
Copy constructor.
void init(const_reference v)
Initialize values to a constant value.
StaticStandardStorage< ord_t, val_t, Num > type
StaticStandardStorage(const ordinal_type &sz_, const value_type &x=value_type(0.0))
Constructor.
const value_type * const_pointer
ordinal_type size() const
Return size.
const value_type & const_reference