Stokhos Development
Loading...
Searching...
No Matches
Stokhos::StandardStorage< ordinal_type, value_type > Class Template Reference

Classes

struct  apply
 Turn StandardStorage into a meta-function class usable with mpl::apply. More...
 

Public Types

typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 

Public Member Functions

 StandardStorage (const ordinal_type &sz, const value_type &x=value_type(0.0))
 Constructor.
 
 ~StandardStorage ()
 Destructor.
 
void init (const_reference v)
 Initialize values to a constant value.
 
void init (const_pointer v, const ordinal_type &sz=0)
 Initialize values to an array of values.
 
void load (pointer v)
 Load values to an array of values.
 
void resize (const ordinal_type &sz)
 Resize to new size (values are preserved)
 
ordinal_type size () const
 Return size.
 
const_reference operator[] (const ordinal_type &i) const
 Coefficient access (avoid if possible)
 
reference operator[] (const ordinal_type &i)
 Coefficient access (avoid if possible)
 
const_pointer coeff () const
 Get coefficients.
 
pointer coeff ()
 Get coefficients.
 

The documentation for this class was generated from the following file: