Sacado
Development
|
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. | |
Public Member Functions | |
Vector (OrdinalType vec_size, OrdinalType deriv_size, VectorDerivOrientation orient=Row) | |
Constructor. | |
Vector (const Vector &fv) | |
Copy constructor. | |
~Vector () | |
Destructor. | |
Vector & | operator= (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. | |
ValueType * | vals () |
Pointer to values. | |
const ValueType * | vals () const |
Pointer to values. | |
ValueType * | dx () |
Pointer to derivatives. | |
const ValueType * | dx () const |
Pointer to values. | |
Protected Attributes | |
OrdinalType | deriv_size_ |
Size of derivative array. | |
VectorDerivOrientation | orient_ |
Derivative array orientation. | |
OrdinalType | stride_ |
Derivative array stride. | |
std::vector< FadType > | vec_ |
Vector of Fad's. | |
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).