10 #ifndef SACADO_FAD_VECTOR_HPP
11 #define SACADO_FAD_VECTOR_HPP
32 template <
typename OrdinalType,
typename FadType >
40 Vector(OrdinalType vec_size, OrdinalType deriv_sz,
43 for (OrdinalType
i=0;
i<vec_size;
i++)
61 OrdinalType
size()
const {
return vec_.size(); }
94 template <
typename OrdinalType,
typename ValueType>
166 #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.