32 #ifndef SACADO_FAD_VECTOR_HPP
33 #define SACADO_FAD_VECTOR_HPP
54 template <
typename OrdinalType,
typename FadType >
62 Vector(OrdinalType vec_size, OrdinalType deriv_sz,
65 for (OrdinalType i=0; i<vec_size; i++)
83 OrdinalType
size()
const {
return vec_.size(); }
116 template <
typename OrdinalType,
typename ValueType>
188 #endif // SACADO_FAD_VECTOR_HPP
VectorDerivOrientation orient_
Derivative array orientation.
const FadType & operator[](OrdinalType i) const
Array access.
FadType & operator[](OrdinalType i)
Array access.
OrdinalType stride_
Derivative array stride.
Vector(OrdinalType vec_size, OrdinalType deriv_sz, VectorDerivOrientation orient=Row)
Constructor.
OrdinalType deriv_size() const
Derivative size.
OrdinalType deriv_stride() const
Derivative array stride.
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
Sacado::Fad::DFad< double > FadType
Vector(const Vector &fv)
Copy constructor.
OrdinalType size() const
Vector size.
A class for storing a contiguously allocated array of Fad objects. This is a general definition that ...
const FadType & operator[](OrdinalType i) const
Array access.
std::vector< FadType > vec_
Vector of Fad's.
OrdinalType deriv_size() const
Derivative size.
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
Forward-mode AD class using dynamic memory allocation and expression templates.
OrdinalType deriv_size_
Size of derivative array.
std::vector< FadType > vec_
Vector of Fad's.
Derivatives are stored row-wise (strided)
Vector & operator=(const Vector &fv)
Assignment.
OrdinalType size() const
Vector size.
Sacado::Fad::DVFad< ValueType > FadType
Synonym for Fad type.
OrdinalType deriv_stride() const
Derivative array stride.
OrdinalType deriv_size_
Size of derivative array.
Base template specification for ValueType.
Sacado::ValueType< FadType >::type ValueType
Typename of values.