|
Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
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
OrdinalType size() const
Vector size.
Sacado::ValueType< FadType >::type ValueType
Typename of values.
Vector(OrdinalType vec_size, OrdinalType deriv_sz, VectorDerivOrientation orient=Row)
Constructor.
Base template specification for ValueType.
OrdinalType deriv_stride() const
Derivative array stride.
OrdinalType deriv_stride() const
Derivative array stride.
Vector(const Vector &fv)
Copy constructor.
FadType & operator[](OrdinalType i)
Array access.
OrdinalType stride_
Derivative array stride.
std::vector< FadType > vec_
Vector of Fad's.
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
VectorDerivOrientation orient_
Derivative array orientation.
const FadType & operator[](OrdinalType i) const
Array access.
std::vector< FadType > vec_
Vector of Fad's.
OrdinalType size() const
Vector size.
Vector & operator=(const Vector &fv)
Assignment.
VectorDerivOrientation deriv_orientation() const
Derivative array orientation.
Sacado::Fad::DFad< double > FadType
OrdinalType deriv_size_
Size of derivative array.
OrdinalType deriv_size_
Size of derivative array.
Forward-mode AD class using dynamic memory allocation and expression templates.
const FadType & operator[](OrdinalType i) const
Array access.
OrdinalType deriv_size() const
Derivative size.
OrdinalType deriv_size() const
Derivative size.
A class for storing a contiguously allocated array of Fad objects. This is a general definition that ...
Derivatives are stored row-wise (strided)
Sacado::Fad::DVFad< ValueType > FadType
Synonym for Fad type.