Sacado Development
Public Types | Public Member Functions | Protected Attributes
Sacado::Fad::Vector< OrdinalType, FadType > Class Template Reference

A class for storing a contiguously allocated array of Fad objects. This is a general definition that will work for all Fad types, and is merely a wrapper around std::vector. A specialization for Sacado::Fad::DVFad providing contiguous allocation of values and derivatives is below. More...

#include <Sacado_Fad_Vector.hpp>

Collaboration diagram for Sacado::Fad::Vector< OrdinalType, FadType >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Sacado::ValueType
< FadType >::type 
ValueType
 Typename of values.

Public Member Functions

 Vector (OrdinalType vec_size, OrdinalType deriv_sz, VectorDerivOrientation orient=Row)
 Constructor.
 Vector (const Vector &fv)
 Copy constructor.
 ~Vector ()
 Destructor.
Vectoroperator= (const Vector &fv)
 Assignment.
OrdinalType size () const
 Vector size.
OrdinalType deriv_size () const
 Derivative size.
OrdinalType deriv_stride () const
 Derivative array stride.
VectorDerivOrientation deriv_orientation () const
 Derivative array orientation.
FadType & operator[] (OrdinalType i)
 Array access.
const FadType & operator[] (OrdinalType i) const
 Array access.

Protected Attributes

OrdinalType deriv_size_
 Size of derivative array.
std::vector< FadType > vec_
 Vector of Fad's.

Detailed Description

template<typename OrdinalType, typename FadType>
class Sacado::Fad::Vector< OrdinalType, FadType >

A class for storing a contiguously allocated array of Fad objects. This is a general definition that will work for all Fad types, and is merely a wrapper around std::vector. A specialization for Sacado::Fad::DVFad providing contiguous allocation of values and derivatives is below.


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