CAPD DynSys Library
5.2.0
|
#include <capd/autodiff/DagIndexer.h>
Public Types | |
typedef ScalarT | ScalarType |
typedef __size_type | size_type |
typedef capd::vectalg::ColumnVector< ScalarType, 0 > | RefVectorType |
typedef ScalarType * | iterator |
typedef capd::diffAlgebra::CnContainer< MultiindexData, 0, 0, 0 > | IndexArray |
Public Member Functions | |
DagIndexer (Dim domain=1, Dim image=1, Degree degree=1, size_type nodes=1, Order order=0) | |
DagIndexer (const DagIndexer &dag) | |
~DagIndexer () | |
DagIndexer & | operator= (const DagIndexer &dag) |
ScalarType & | operator() (VarNo varNo, CoeffNo coeffNo) |
ScalarType & | operator() (VarNo varNo, DerNo derNo, CoeffNo coeffNo) |
ScalarType & | operator() (VarNo varNo, DerNo j, DerNo c, CoeffNo coeffNo) |
ScalarType & | operator() (VarNo varNo, DerNo i, DerNo j, DerNo c, CoeffNo coeffNo) |
Dim | domainDimension () const |
Dim | imageDimension () const |
Dim | degree () const |
JetSize | jetSize () const |
JetSize | timeJetSize () const |
template<class Iterator > | |
void | setMask (Iterator b, Iterator e) |
This method defines a mask for computation of partial derivatives of the function represented by the instance. More... | |
const bool * | getMask () const |
bool | getMask (size_type j) const |
bool | getMask (size_type j, size_type c) const |
void | addMultiindexToMask (const capd::vectalg::Multiindex &i) |
void | resetMask () |
ScalarType * | coefficients () |
const ScalarType * | coefficients () const |
Order | getOrder () const |
void | setOrder (Order order) |
void | resize (Dim domain, Dim image, Degree degree, size_type nodes, Order order) |
iterator | begin () |
iterator selection. Returns iterator to the first element in container More... | |
iterator | end () |
iterator selection. Returns iterator to the first element in container More... | |
iterator | begin (size_type i) |
iterator selection. Returns iterator to the first coefficient of the i-th component More... | |
iterator | end (size_type i) |
iterator selection. Returns iterator to an element after the last element the i-th component More... | |
iterator | begin (size_type i, size_type d) |
iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd' More... | |
iterator | end (size_type i, size_type d) |
iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd' More... | |
const_iterator | begin () const |
iterator selection. Returns iterator to the first element in container More... | |
const_iterator | end () const |
iterator selection. Returns iterator to the first element in container More... | |
const_iterator | begin (size_type i) const |
iterator selection. Returns iterator to the first coefficient of the i-th component More... | |
const_iterator | end (size_type i) const |
iterator selection. Returns iterator to an element after the last element the i-th component More... | |
const_iterator | begin (size_type i, size_type d) const |
iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd' More... | |
const_iterator | end (size_type i, size_type d) const |
iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd' More... | |
const IndexArray & | getIndexArray () const |
Public Attributes | |
const typedef ScalarType * | const_iterator |
typedef capd::diffAlgebra::CnContainer<MultiindexData,0,0,0> capd::autodiff::DagIndexer< ScalarT >::IndexArray |
typedef ScalarType* capd::autodiff::DagIndexer< ScalarT >::iterator |
typedef capd::vectalg::ColumnVector<ScalarType,0> capd::autodiff::DagIndexer< ScalarT >::RefVectorType |
typedef ScalarT capd::autodiff::DagIndexer< ScalarT >::ScalarType |
typedef __size_type capd::autodiff::DagIndexer< ScalarT >::size_type |
capd::autodiff::DagIndexer< Scalar >::DagIndexer | ( | Dim | domain = 1 , |
Dim | image = 1 , |
||
Degree | degree = 1 , |
||
size_type | nodes = 1 , |
||
Order | order = 0 |
||
) |
capd::autodiff::DagIndexer< Scalar >::DagIndexer | ( | const DagIndexer< ScalarT > & | dag | ) |
capd::autodiff::DagIndexer< Scalar >::~DagIndexer |
void capd::autodiff::DagIndexer< Scalar >::addMultiindexToMask | ( | const capd::vectalg::Multiindex & | i | ) |
|
inline |
iterator selection. Returns iterator to the first element in container
const_iterator capd::autodiff::DagIndexer< ScalarT >::begin | ( | ) | const |
iterator selection. Returns iterator to the first element in container
|
inline |
iterator selection. Returns iterator to the first coefficient of the i-th component
|
inline |
iterator selection. Returns iterator to the first coefficient of the i-th component
|
inline |
iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'
|
inline |
iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
iterator selection. Returns iterator to the first element in container
const_iterator capd::autodiff::DagIndexer< ScalarT >::end | ( | ) | const |
iterator selection. Returns iterator to the first element in container
|
inline |
iterator selection. Returns iterator to an element after the last element the i-th component
|
inline |
iterator selection. Returns iterator to an element after the last element the i-th component
|
inline |
iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'
|
inline |
iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
DagIndexer< Scalar > & capd::autodiff::DagIndexer< Scalar >::operator= | ( | const DagIndexer< ScalarT > & | dag | ) |
void capd::autodiff::DagIndexer< Scalar >::resetMask |
void capd::autodiff::DagIndexer< Scalar >::resize | ( | Dim | domain, |
Dim | image, | ||
Degree | degree, | ||
size_type | nodes, | ||
Order | order | ||
) |
void capd::autodiff::DagIndexer< T >::setMask | ( | Iterator | b, |
Iterator | e | ||
) |
This method defines a mask for computation of partial derivatives of the function represented by the instance.
Each element of the range [b,e) should be a valid Multiindex. The user can specify which partial derivatives he/she needs tp compute. Dependent derivatives are added to the list automatically and those independent are not evaluated which significantly speeds up the computation.
Example: setMask({Multiindex({1,1,0}),Multiindex({2,0,0})});
Here we request derivatives dx1dx2 and d^2x1. They depend on first order derivatives dx1 and dx2 which will be added automatically.
[b,e) | - iterator range of Multiindxes |
void capd::autodiff::DagIndexer< Scalar >::setOrder | ( | Order | order | ) |
|
inline |
const typedef ScalarType* capd::autodiff::DagIndexer< ScalarT >::const_iterator |