Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
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>
Public Types | |
typedef Sacado::ValueType < FadType >::type | ValueType |
Typename of values. More... | |
Public Member Functions | |
Vector (OrdinalType vec_size, OrdinalType deriv_sz, VectorDerivOrientation orient=Row) | |
Constructor. More... | |
Vector (const Vector &fv) | |
Copy constructor. More... | |
~Vector () | |
Destructor. More... | |
Vector & | operator= (const Vector &fv) |
Assignment. More... | |
OrdinalType | size () const |
Vector size. More... | |
OrdinalType | deriv_size () const |
Derivative size. More... | |
OrdinalType | deriv_stride () const |
Derivative array stride. More... | |
VectorDerivOrientation | deriv_orientation () const |
Derivative array orientation. More... | |
FadType & | operator[] (OrdinalType i) |
Array access. More... | |
const FadType & | operator[] (OrdinalType i) const |
Array access. More... | |
Protected Attributes | |
OrdinalType | deriv_size_ |
Size of derivative array. More... | |
std::vector< FadType > | vec_ |
Vector of Fad's. More... | |
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.
Definition at line 33 of file Sacado_Fad_Vector.hpp.
typedef Sacado::ValueType<FadType>::type Sacado::Fad::Vector< OrdinalType, FadType >::ValueType |
Typename of values.
Definition at line 37 of file Sacado_Fad_Vector.hpp.
|
inline |
Constructor.
Definition at line 40 of file Sacado_Fad_Vector.hpp.
|
inline |
Copy constructor.
Definition at line 48 of file Sacado_Fad_Vector.hpp.
|
inline |
Destructor.
Definition at line 51 of file Sacado_Fad_Vector.hpp.
|
inline |
Assignment.
Definition at line 54 of file Sacado_Fad_Vector.hpp.
|
inline |
Vector size.
Definition at line 61 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative size.
Definition at line 64 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative array stride.
Definition at line 67 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative array orientation.
Definition at line 70 of file Sacado_Fad_Vector.hpp.
|
inline |
Array access.
Definition at line 73 of file Sacado_Fad_Vector.hpp.
|
inline |
Array access.
Definition at line 76 of file Sacado_Fad_Vector.hpp.
|
protected |
Size of derivative array.
Definition at line 81 of file Sacado_Fad_Vector.hpp.
|
protected |
Definition at line 84 of file Sacado_Fad_Vector.hpp.