|
Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
44 #ifndef STOKHOS_STATIC_FIXED_STANDARD_STORAGE_HPP
45 #define STOKHOS_STATIC_FIXED_STANDARD_STORAGE_HPP
47 #include "Sacado_StaticArrayTraits.hpp"
53 template <
typename ordinal_type,
typename value_type,
int Num>
61 typedef Sacado::ss_array<value_type>
ss;
64 template <
typename ord_t,
typename val_t>
136 #endif // STOKHOS_STANDARD_STORAGE_HPP
StaticFixedStandardStorage< ord_t, val_t, Num > type
value_type coeff_[Num]
Coefficient values.
void load(pointer v)
Load values to an array of values.
const typedef value_type * const_pointer
Statically allocated storage class.
void init(const_pointer v, const ordinal_type &sz_=0)
Initialize values to an array of values.
void init(const_reference v)
Initialize values to a constant value.
StaticFixedStandardStorage(const ordinal_type &sz, const value_type &x=value_type(0.0))
Constructor.
StaticFixedStandardStorage(const StaticFixedStandardStorage &s)
Copy constructor.
const typedef value_type & const_reference
void resize(const ordinal_type &sz)
Resize to new size (values are preserved)
Top-level namespace for Stokhos classes and functions.
const_pointer coeff() const
Get coefficients.
static ordinal_type size()
Return size.
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)
Sacado::ss_array< value_type > ss
StaticFixedStandardStorage & operator=(const StaticFixedStandardStorage &s)
Assignment operator.
const_reference operator[](const ordinal_type &i) const
Coefficient access (avoid if possible)
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType * x
~StaticFixedStandardStorage()
Destructor.
pointer coeff()
Get coefficients.
Turn StaticFixedStandardStorage into a meta-function class usable with mpl::apply.