Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
A class for storing a contiguously allocated array of Fad objects where the values and derivative arrays for each Fad object are stored in contiguous memory. To preserve this structure, many vector operations aren't supported (like resizing). More...
#include <Sacado_Fad_Vector.hpp>
Public Types | |
typedef Sacado::Fad::DVFad < ValueType > | FadType |
Synonym for Fad type. More... | |
Public Member Functions | |
Vector (OrdinalType vec_size, OrdinalType deriv_size, 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... | |
ValueType * | vals () |
Pointer to values. More... | |
const ValueType * | vals () const |
Pointer to values. More... | |
ValueType * | dx () |
Pointer to derivatives. More... | |
const ValueType * | dx () const |
Pointer to values. More... | |
Protected Attributes | |
OrdinalType | deriv_size_ |
Size of derivative array. More... | |
VectorDerivOrientation | orient_ |
Derivative array orientation. More... | |
OrdinalType | stride_ |
Derivative array stride. More... | |
std::vector< FadType > | vec_ |
Vector of Fad's. More... | |
A class for storing a contiguously allocated array of Fad objects where the values and derivative arrays for each Fad object are stored in contiguous memory. To preserve this structure, many vector operations aren't supported (like resizing).
Definition at line 95 of file Sacado_Fad_Vector.hpp.
typedef Sacado::Fad::DVFad<ValueType> Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::FadType |
Synonym for Fad type.
Definition at line 99 of file Sacado_Fad_Vector.hpp.
Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::Vector | ( | OrdinalType | vec_size, |
OrdinalType | deriv_size, | ||
VectorDerivOrientation | orient = Row |
||
) |
Constructor.
Definition at line 14 of file Sacado_Fad_VectorImp.hpp.
Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::Vector | ( | const Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > > & | fv | ) |
Copy constructor.
Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::~Vector | ( | ) |
Destructor.
Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > > & Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::operator= | ( | const Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > > & | fv | ) |
Assignment.
Definition at line 87 of file Sacado_Fad_VectorImp.hpp.
|
inline |
Vector size.
Definition at line 115 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative size.
Definition at line 118 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative array stride.
Definition at line 121 of file Sacado_Fad_Vector.hpp.
|
inline |
Derivative array orientation.
Definition at line 124 of file Sacado_Fad_Vector.hpp.
|
inline |
Array access.
Definition at line 127 of file Sacado_Fad_Vector.hpp.
|
inline |
Array access.
Definition at line 130 of file Sacado_Fad_Vector.hpp.
ValueType * Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::vals | ( | ) |
Pointer to values.
Definition at line 96 of file Sacado_Fad_VectorImp.hpp.
const ValueType * Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::vals | ( | ) | const |
Pointer to values.
Definition at line 106 of file Sacado_Fad_VectorImp.hpp.
ValueType * Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::dx | ( | ) |
Pointer to derivatives.
Definition at line 116 of file Sacado_Fad_VectorImp.hpp.
const ValueType * Sacado::Fad::Vector< OrdinalType, Sacado::Fad::DVFad< ValueType > >::dx | ( | ) | const |
Pointer to values.
Definition at line 126 of file Sacado_Fad_VectorImp.hpp.
|
protected |
Size of derivative array.
Definition at line 147 of file Sacado_Fad_Vector.hpp.
|
protected |
Derivative array orientation.
Definition at line 150 of file Sacado_Fad_Vector.hpp.
|
protected |
Derivative array stride.
Definition at line 153 of file Sacado_Fad_Vector.hpp.
|
protected |
Definition at line 156 of file Sacado_Fad_Vector.hpp.