Sacado  Development
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
Sacado::Fad::ViewStorage< T, static_length, static_stride > Class Template Reference

Derivative array storage class that is a view into a contiguous memory allocation. It does not provide proper value semantics and thus should not be used in a general-purpose scalar type. More...

#include <Sacado_Fad_ViewStorage.hpp>

List of all members.

Public Member Functions

 ViewStorage (const T &x)
 Default constructor (needed to satisfy interface)
 ViewStorage (const int sz, const T &x)
 Constructor with size sz (needed to satisfy interface)
 ViewStorage (T *v, const int arg_size=0, const int arg_stride=0)
 Constructor.
 ViewStorage (const ViewStorage &x)
 Copy constructor.
 ~ViewStorage ()
 Destructor.
ViewStorageoperator= (const ViewStorage &x)
 Assignment.
int size () const
 Returns number of derivative components.
int length () const
 Returns array length.
void resize (int sz)
 Resize the derivative array to sz.
void resizeAndZero (int sz)
 Resize the derivative array to sz.
void expand (int sz)
 Expand derivative array to size sz.
void zero ()
 Zero out derivative array.
const T & val () const
 Returns value.
T & val ()
 Returns value.
const T * dx () const
 Returns derivative array.
dx (int i) const
 Returns derivative component i with bounds checking.
T & fastAccessDx (int i)
 Returns derivative component i without bounds checking.
const T & fastAccessDx (int i) const
 Returns derivative component i without bounds checking.

Detailed Description

template<typename T, unsigned static_length, unsigned static_stride>
class Sacado::Fad::ViewStorage< T, static_length, static_stride >

Derivative array storage class that is a view into a contiguous memory allocation. It does not provide proper value semantics and thus should not be used in a general-purpose scalar type.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends