CAPD DynSys Library  5.2.0
capd::diffAlgebra::Jet< MatrixT, DEGREE > Class Template Reference

The class is used to store coefficients of a truncated power series to degree D $ f:R^N->R^M $ Coefficients area assumed to be of a numeric type. More...

#include <capd/diffAlgebra/Jet.h>

Classes

struct  rebind
 

Public Types

typedef MatrixT MatrixType
 
typedef MatrixType::ScalarType ScalarType
 
typedef MatrixType::RefColumnVectorType RefVectorType
 
typedef MatrixType::RowVectorType VectorType
 
typedef MatrixType::ColumnVectorType ImageVectorType
 
typedef capd::diffAlgebra::Hessian< ScalarType, ImageVectorType::csDim, VectorType::csDim > HessianType
 
typedef ScalarTypeiterator
 
typedef CnContainer< ScalarType, ImageVectorType::csDim, VectorType::csDim, DEGREE > CnContainerType
 
typedef CnContainerType::BaseContainer ContainerType
 
typedef CnContainerType::Multipointer Multipointer
 
typedef CnContainerType::Multiindex Multiindex
 
typedef __size_type size_type
 
typedef __difference_type difference_type
 
typedef capd::vectalg::Container< MatrixT::ScalarType, M *N *D!=0 ? M *Binomial< N+D, D >::value :0 > BaseContainer
 
typedef MatrixT::ScalarType ObjectType
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

 Jet ()
 
 Jet (size_type n, size_type d)
 
 Jet (size_type m, size_type n, size_type d)
 
 Jet (const Jet &v)=default
 
 Jet (Jet &&v)
 
Jetoperator= (const Jet &)=default
 
Jetoperator= (Jet &&v)
 
RefVectorType operator() (const Multipointer &mp) const
 this operator returns a vector of partial derivatives, i.e. result[i] = d^{mp}f_i More...
 
RefVectorType operator() (const Multiindex &mp) const
 this operator returns a vector of partial derivatives, i.e. result[i] = d^{mp}f_i More...
 
 operator ImageVectorType () const
 this operator returns a value of function, i.e. 0-order derivatives More...
 
RefVectorType operator() (void) const
 this operator returns value of function as a reference More...
 
 operator MatrixType () const
 this operator returns first order derivatives as a matrix More...
 
void setMatrix (const MatrixType &)
 
 operator HessianType () const
 this operator returns second order derivatives as a hessian object More...
 
ImageVectorType operator() (const VectorType &) const
 
MatrixType derivative (const VectorType &v) const
 
ImageVectorType operator() (const VectorType &v, MatrixType &matrix) const
 
std::string toString (int minFun=0, int maxFun=-1, int firstVariable=0, int minDegree=0, int maxDegree=-1, int precision=-1) const
 returns string containing derivatives information More...
 
std::ostream & save (std::ostream &out, std::streamsize prec=capd::TypeTraits< ScalarType >::numberOfDigits()+1) const
 saves data to stream out with given precision (the default precision allows to load data without lose of precision) More...
 
std::istream & load (std::istream &in)
 loads cn data from given stream (expected format is exactly this provided by save) More...
 
iterator begin (size_type i)
 iterator selection. Returns iterator to the first coefficient of 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...
 
const_iterator begin (size_type i) const
 iterator selection. Returns iterator to the first coefficient of 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...
 
iterator end (size_type i)
 iterator selection. Returns iterator to an element after the last element the i-th component 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 end (size_type i) const
 iterator selection. Returns iterator to an element after the last element the i-th component 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...
 
size_type dimension () const
 returns number of variables of the polynomial More...
 
size_type degree () const
 returns degree of the polynomial More...
 
size_type imageDimension () const
 returns number of polynomials (dimension of counterdomain) More...
 
MatrixT::ScalarType & operator() (size_type i, const Multipointer &mp)
 selection of coefficient of i-th component that correspond to multipointer mp More...
 
MatrixT::ScalarType & operator() (size_type i, const Multipointer &, const Multipointer &)
 
MatrixT::ScalarType & operator() (size_type i, const Multiindex &mi)
 selection of coefficient of i-th component that correspond to multiindex mi More...
 
const MatrixT::ScalarType & operator() (size_type i, const Multipointer &) const
 selection of coefficient of i-th component that correspond to multipointer mp More...
 
const MatrixT::ScalarType & operator() (size_type i, const Multipointer &, const Multipointer &) const
 
const MatrixT::ScalarType & operator() (size_type i, const Multiindex &) const
 selection of coefficient of i-th component that correspond to multiindex mi More...
 
MatrixT::ScalarType & operator() (size_type i)
 returns constant term of the i-th component of polynomial More...
 
MatrixT::ScalarType & operator() (size_type i, size_type j)
 returns reference to a coefficient in linear part, i.e. $ df_i/dx_j $ More...
 
MatrixT::ScalarType & operator() (size_type i, size_type j, size_type c)
 returns reference to a coefficient in second order part, i.e. $ d^2f_i/dx_jdx_c $ More...
 
MatrixT::ScalarType & operator() (size_type i, size_type j, size_type c, size_type k)
 returns reference to a coefficient in third order part, i.e. $ d^3f_i/dx_jdx_cdx_k $ More...
 
const MatrixT::ScalarType & operator() (size_type i) const
 returns constant term of the i-th component of polynomial More...
 
const MatrixT::ScalarType & operator() (size_type i, size_type j) const
 returns read only reference to a coefficient in linear part, i.e. $ df_i/dx_j $ More...
 
const MatrixT::ScalarType & operator() (size_type i, size_type j, size_type c) const
 returns read only reference to a coefficient in second order part, i.e. $ d^2f_i/dx_jdx_c $ More...
 
const MatrixT::ScalarType & operator() (size_type i, size_type j, size_type c, size_type k) const
 returns read only reference to a coefficient in third order part, i.e. $ d^3f_i/dx_jdx_cdx_k $ More...
 
ScalarTypeoperator() (size_type)
 
const ScalarTypeoperator() (size_type) const
 
iterator begin (size_type i)
 iterator selection. Returns iterator to the first coefficient of 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...
 
const_iterator begin (size_type i) const
 iterator selection. Returns iterator to the first coefficient of 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...
 
iterator end (size_type i)
 iterator selection. Returns iterator to an element after the last element the i-th component 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 end (size_type i) const
 iterator selection. Returns iterator to an element after the last element the i-th component 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...
 
Multipointer first (size_type d) const
 Selection of elements by multipointers. More...
 
bool hasNext (Multipointer &) const
 see description of the method first. More...
 
bool hasNext (Multiindex &) const
 see description of the method first. More...
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void resize (size_type newCapacity)
 
ScalarTypeoperator[] (size_type)
 
const ScalarTypeoperator[] (size_type) const
 
void clear ()
 

Static Public Member Functions

static size_type size ()
 

Public Attributes

const typedef ScalarTypeconst_iterator
 
size_type m_N
 number of variables More...
 
size_type m_M
 number of components More...
 

Protected Attributes

size_type m_D
 total degree of polynomial More...
 
ScalarType data [capacity]
 

Friends

std::ostream & operator<< (std::ostream &out, const Jet &jet)
 
std::istream & operator>> (std::istream &in, Jet &jet)
 

Detailed Description

template<typename MatrixT, __size_type DEGREE>
class capd::diffAlgebra::Jet< MatrixT, DEGREE >

The class is used to store coefficients of a truncated power series to degree D $ f:R^N->R^M $ Coefficients area assumed to be of a numeric type.

The base CnContainer is used to manage memory allocations, copying, etc.

Member Typedef Documentation

◆ BaseContainer

typedef capd::vectalg::Container<MatrixT::ScalarType ,M*N*D!=0 ? M*Binomial<N+D,D>::value : 0> capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::BaseContainer
inherited

◆ CnContainerType

template<typename MatrixT , __size_type DEGREE>
typedef CnContainer<ScalarType,ImageVectorType::csDim,VectorType::csDim,DEGREE> capd::diffAlgebra::Jet< MatrixT, DEGREE >::CnContainerType

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> capd::vectalg::Container< MatrixT::ScalarType , capacity >::const_reverse_iterator
inherited

◆ ContainerType

template<typename MatrixT , __size_type DEGREE>
typedef CnContainerType::BaseContainer capd::diffAlgebra::Jet< MatrixT, DEGREE >::ContainerType

◆ difference_type

template<typename MatrixT , __size_type DEGREE>
typedef __difference_type capd::diffAlgebra::Jet< MatrixT, DEGREE >::difference_type

◆ HessianType

template<typename MatrixT , __size_type DEGREE>
typedef capd::diffAlgebra::Hessian<ScalarType,ImageVectorType::csDim,VectorType::csDim> capd::diffAlgebra::Jet< MatrixT, DEGREE >::HessianType

◆ ImageVectorType

template<typename MatrixT , __size_type DEGREE>
typedef MatrixType::ColumnVectorType capd::diffAlgebra::Jet< MatrixT, DEGREE >::ImageVectorType

◆ iterator

template<typename MatrixT , __size_type DEGREE>
typedef ScalarType* capd::diffAlgebra::Jet< MatrixT, DEGREE >::iterator

◆ MatrixType

template<typename MatrixT , __size_type DEGREE>
typedef MatrixT capd::diffAlgebra::Jet< MatrixT, DEGREE >::MatrixType

◆ Multiindex

template<typename MatrixT , __size_type DEGREE>
typedef CnContainerType::Multiindex capd::diffAlgebra::Jet< MatrixT, DEGREE >::Multiindex

◆ Multipointer

template<typename MatrixT , __size_type DEGREE>
typedef CnContainerType::Multipointer capd::diffAlgebra::Jet< MatrixT, DEGREE >::Multipointer

◆ ObjectType

typedef MatrixT::ScalarType capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::ObjectType
inherited

◆ RefVectorType

template<typename MatrixT , __size_type DEGREE>
typedef MatrixType::RefColumnVectorType capd::diffAlgebra::Jet< MatrixT, DEGREE >::RefVectorType

◆ reverse_iterator

typedef std::reverse_iterator<iterator> capd::vectalg::Container< MatrixT::ScalarType , capacity >::reverse_iterator
inherited

◆ ScalarType

template<typename MatrixT , __size_type DEGREE>
typedef MatrixType::ScalarType capd::diffAlgebra::Jet< MatrixT, DEGREE >::ScalarType

◆ size_type

template<typename MatrixT , __size_type DEGREE>
typedef __size_type capd::diffAlgebra::Jet< MatrixT, DEGREE >::size_type

◆ VectorType

template<typename MatrixT , __size_type DEGREE>
typedef MatrixType::RowVectorType capd::diffAlgebra::Jet< MatrixT, DEGREE >::VectorType

Constructor & Destructor Documentation

◆ Jet() [1/2]

template<typename MatrixT , __size_type DEGREE>
capd::diffAlgebra::Jet< MatrixT, DEGREE >::Jet ( const Jet< MatrixT, DEGREE > &  v)
default

◆ Jet() [2/2]

template<typename MatrixT , __size_type DEGREE>
capd::diffAlgebra::Jet< MatrixT, DEGREE >::Jet ( Jet< MatrixT, DEGREE > &&  v)
inline

Member Function Documentation

◆ begin() [1/8]

CnContainer< MatrixT::ScalarType , M, N, D >::iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::begin ( size_type  i)
inlineinherited

iterator selection. Returns iterator to the first coefficient of the i-th component

◆ begin() [2/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::begin
inline

iterator selection. Returns iterator to the first coefficient of the i-th component

◆ begin() [3/8]

CnContainer< MatrixT::ScalarType , M, N, D >::const_iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::begin ( size_type  i) const
inlineinherited

iterator selection. Returns iterator to the first coefficient of the i-th component

◆ begin() [4/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::const_iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::begin
inline

iterator selection. Returns iterator to the first coefficient of the i-th component

◆ begin() [5/8]

CnContainer< MatrixT::ScalarType , M, N, D >::iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::begin ( size_type  i,
size_type  d 
)
inlineinherited

iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'

◆ begin() [6/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::begin
inline

iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'

◆ begin() [7/8]

CnContainer< MatrixT::ScalarType , M, N, D >::const_iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::begin ( size_type  i,
size_type  d 
) const
inlineinherited

iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'

◆ begin() [8/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::const_iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::begin
inline

iterator selection. Returns iterator to the first coefficient of the i-th component of the homogeneous part of degree 'd'

◆ clear()

void capd::vectalg::Container< MatrixT::ScalarType , capacity >::clear
inherited

◆ degree()

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::size_type capd::diffAlgebra::CnContainer< Object, M, N, D >::degree
inline

returns degree of the polynomial

◆ derivative()

template<typename MatrixT , __size_type DEGREE>
Jet< MatrixT, DEGREE >::MatrixType capd::diffAlgebra::Jet< MatrixT, DEGREE >::derivative ( const VectorType v) const

◆ dimension()

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::size_type capd::diffAlgebra::CnContainer< Object, M, N, D >::dimension
inline

returns number of variables of the polynomial

◆ end() [1/8]

CnContainer< MatrixT::ScalarType , M, N, D >::iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::end ( size_type  i)
inlineinherited

iterator selection. Returns iterator to an element after the last element the i-th component

◆ end() [2/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::end
inline

iterator selection. Returns iterator to an element after the last element the i-th component

◆ end() [3/8]

CnContainer< MatrixT::ScalarType , M, N, D >::const_iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::end ( size_type  i) const
inlineinherited

iterator selection. Returns iterator to an element after the last element the i-th component

◆ end() [4/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::const_iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::end
inline

iterator selection. Returns iterator to an element after the last element the i-th component

◆ end() [5/8]

CnContainer< MatrixT::ScalarType , M, N, D >::iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::end ( size_type  i,
size_type  d 
)
inlineinherited

iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'

◆ end() [6/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::end
inline

iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'

◆ end() [7/8]

CnContainer< MatrixT::ScalarType , M, N, D >::const_iterator capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::end ( size_type  i,
size_type  d 
) const
inlineinherited

iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'

◆ end() [8/8]

template<typename MatrixT , __size_type DEGREE>
CnContainer< Object, M, N, D >::const_iterator capd::diffAlgebra::CnContainer< Object, M, N, D >::end
inline

iterator selection. Returns iterator to an element after the last coefficient of the i-th component of the homogeneous part of degree 'd'

◆ first()

CnContainer< MatrixT::ScalarType , M, N, D >::Multipointer capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::first ( size_type  degree) const
inlineinherited

Selection of elements by multipointers.

Resizes CnContainer.

Iterators do not give information about the index of partial derivative. Access by multipointer is significantly slower than by iterator because the multipointer must be recomputed to the index in array.

Typical usage of multipointers is as follows: Multipointer mp = cnContainer.first(d); int i = ...; // fix i-th component do{ // do something cout << mp << "\t" << cnContainer(i,mp) << endl; }while(cnContainer.hasNext(mp)); Iterators and multipointers read coefficients of a homogeneous polynomial in the same order.

Parameters
newRanknew maximal order
newDimensionnew dimension
copyDataflag that controls if data is copied

◆ hasNext() [1/2]

bool capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::hasNext ( Multiindex mp) const
inherited

see description of the method first.

◆ hasNext() [2/2]

bool capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::hasNext ( Multipointer mp) const
inherited

see description of the method first.

◆ imageDimension()

CnContainer< MatrixT::ScalarType , M, N, D >::size_type capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::imageDimension
inlineinherited

returns number of polynomials (dimension of counterdomain)

◆ load()

template<typename MatrixT , __size_type DEGREE>
std::istream & capd::diffAlgebra::Jet< MatrixT, DEGREE >::load ( std::istream &  in)

loads cn data from given stream (expected format is exactly this provided by save)

◆ operator HessianType()

template<typename MatrixT , __size_type DEGREE>
capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator HessianType ( ) const

this operator returns second order derivatives as a hessian object

◆ operator ImageVectorType()

template<typename MatrixT , __size_type DEGREE>
capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator ImageVectorType ( ) const

this operator returns a value of function, i.e. 0-order derivatives

◆ operator MatrixType()

template<typename MatrixT , __size_type DEGREE>
capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator MatrixType ( ) const

this operator returns first order derivatives as a matrix

◆ operator()() [1/18]

template<typename MatrixT , __size_type DEGREE>
Jet< MatrixT, DEGREE >::ImageVectorType capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator() ( const VectorType v) const

◆ operator()() [2/18]

template<typename MatrixT , __size_type DEGREE>
Jet< MatrixT, DEGREE >::ImageVectorType capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator() ( const VectorType v,
MatrixType matrix 
) const

◆ operator()() [3/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i)
inlineinherited

returns constant term of the i-th component of polynomial

◆ operator()() [4/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i) const
inlineinherited

returns constant term of the i-th component of polynomial

◆ operator()() [5/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multiindex mi 
) const
inlineinherited

selection of coefficient of i-th component that correspond to multiindex mi

◆ operator()() [6/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multiindex mi 
)
inlineinherited

selection of coefficient of i-th component that correspond to multiindex mi

◆ operator()() [7/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multipointer mp 
) const
inlineinherited

selection of coefficient of i-th component that correspond to multipointer mp

◆ operator()() [8/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multipointer mp,
const Multipointer sub 
)
inlineinherited

◆ operator()() [9/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multipointer mp,
const Multipointer sub 
) const
inlineinherited

◆ operator()() [10/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
const Multipointer mp 
)
inlineinherited

selection of coefficient of i-th component that correspond to multipointer mp

◆ operator()() [11/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j 
)
inlineinherited

returns reference to a coefficient in linear part, i.e. $ df_i/dx_j $

◆ operator()() [12/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j 
) const
inlineinherited

returns read only reference to a coefficient in linear part, i.e. $ df_i/dx_j $

◆ operator()() [13/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j,
size_type  c 
)
inlineinherited

returns reference to a coefficient in second order part, i.e. $ d^2f_i/dx_jdx_c $

◆ operator()() [14/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j,
size_type  c 
) const
inlineinherited

returns read only reference to a coefficient in second order part, i.e. $ d^2f_i/dx_jdx_c $

◆ operator()() [15/18]

MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j,
size_type  c,
size_type  k 
)
inlineinherited

returns reference to a coefficient in third order part, i.e. $ d^3f_i/dx_jdx_cdx_k $

◆ operator()() [16/18]

const MatrixT::ScalarType & capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::operator() ( size_type  i,
size_type  j,
size_type  c,
size_type  k 
) const
inlineinherited

returns read only reference to a coefficient in third order part, i.e. $ d^3f_i/dx_jdx_cdx_k $

◆ operator()() [17/18]

MatrixT::ScalarType & capd::vectalg::Container< MatrixT::ScalarType , capacity >::operator() ( size_type  i)
inlineinherited

◆ operator()() [18/18]

const MatrixT::ScalarType & capd::vectalg::Container< MatrixT::ScalarType , capacity >::operator() ( size_type  i) const
inlineinherited

◆ operator=() [1/2]

template<typename MatrixT , __size_type DEGREE>
Jet& capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator= ( const Jet< MatrixT, DEGREE > &  )
default

◆ operator=() [2/2]

template<typename MatrixT , __size_type DEGREE>
Jet& capd::diffAlgebra::Jet< MatrixT, DEGREE >::operator= ( Jet< MatrixT, DEGREE > &&  v)
inline

◆ operator[]() [1/2]

MatrixT::ScalarType & capd::vectalg::Container< MatrixT::ScalarType , capacity >::operator[] ( size_type  i)
inlineinherited

◆ operator[]() [2/2]

const MatrixT::ScalarType & capd::vectalg::Container< MatrixT::ScalarType , capacity >::operator[] ( size_type  i) const
inlineinherited

◆ rbegin() [1/2]

Container< MatrixT::ScalarType , capacity >::const_reverse_iterator capd::vectalg::Container< MatrixT::ScalarType , capacity >::rbegin
inlineinherited

◆ rbegin() [2/2]

const_reverse_iterator capd::vectalg::Container< MatrixT::ScalarType , capacity >::rbegin
inherited

◆ rend() [1/2]

Container< MatrixT::ScalarType , capacity >::const_reverse_iterator capd::vectalg::Container< MatrixT::ScalarType , capacity >::rend
inlineinherited

◆ rend() [2/2]

const_reverse_iterator capd::vectalg::Container< MatrixT::ScalarType , capacity >::rend
inherited

◆ resize()

void capd::vectalg::Container< MatrixT::ScalarType , capacity >::resize ( size_type  newCapacity)
inherited

◆ save()

template<typename MatrixT , __size_type DEGREE>
std::ostream & capd::diffAlgebra::Jet< MatrixT, DEGREE >::save ( std::ostream &  out,
std::streamsize  prec = capd::TypeTraits<ScalarType>::numberOfDigits() + 1 
) const

saves data to stream out with given precision (the default precision allows to load data without lose of precision)

saves data to stream out with given precision

  • the default precision allows to load data without lose of precision,
  • if given precision prec is less or equal to 0 the current precision is used

Format:

degree (order of the highest derivative)
coefficient in the order as they are stored in the memory
each line contains one coefficient

◆ setMatrix()

template<typename MatrixT , __size_type DEGREE>
void capd::diffAlgebra::Jet< MatrixT, DEGREE >::setMatrix ( const MatrixType m)

◆ size()

static size_type capd::vectalg::Container< MatrixT::ScalarType , capacity >::size
inlinestaticinherited

◆ toString()

template<typename MatrixT , __size_type DEGREE>
std::string capd::diffAlgebra::Jet< MatrixT, DEGREE >::toString ( int  firstFun = 0,
int  lastFun = -1,
int  firstVariable = 0,
int  minDegree = 0,
int  maxDegree = -1,
int  precision = -1 
) const

returns string containing derivatives information

Return derivative information in human readable form.

You can specify which derivatives you want, It will return all derivatives $ df_i/dx^a $ where i = firstFun,..., lastFun |a| = minDegree, ..., maxDegree

Parameters
firstFunindex of the first function
lastFunindex of the last function
minDegreeminimal degree displayed
maxDegreemaximal degree displayed
Returns
string containing derivatives information

Friends And Related Function Documentation

◆ operator<<

template<typename MatrixT , __size_type DEGREE>
std::ostream& operator<< ( std::ostream &  out,
const Jet< MatrixT, DEGREE > &  jet 
)
friend

◆ operator>>

template<typename MatrixT , __size_type DEGREE>
std::istream& operator>> ( std::istream &  in,
Jet< MatrixT, DEGREE > &  jet 
)
friend

Member Data Documentation

◆ const_iterator

template<typename MatrixT , __size_type DEGREE>
const typedef ScalarType* capd::diffAlgebra::Jet< MatrixT, DEGREE >::const_iterator

◆ data

ScalarType capd::vectalg::Container< MatrixT::ScalarType , capacity >::data[capacity]
protectedinherited

◆ m_D

size_type capd::diffAlgebra::CnContainer< MatrixT::ScalarType , M, N, D >::m_D
protectedinherited

total degree of polynomial

◆ m_M

template<typename MatrixT , __size_type DEGREE>
size_type capd::diffAlgebra::CnContainer< Object, M, N, D >::m_M

number of components

◆ m_N

template<typename MatrixT , __size_type DEGREE>
size_type capd::diffAlgebra::CnContainer< Object, M, N, D >::m_N

number of variables

capd::diffAlgebra::CnContainer< MatrixT::ScalarType, MatrixT::ColumnVectorType::csDim, MatrixT::RowVectorType::csDim, DEGREE >::degree
size_type degree() const
returns degree of the polynomial
Definition: CnContainer.h:299
order
int order
Definition: tayltst.cpp:31
capd::diffAlgebra::Jet::derivative
MatrixType derivative(const VectorType &v) const
Definition: Jet.hpp:246
capd::one
T one()
for given type returns object that represents one (identity)
Definition: TypeTraits.h:92
capd::diffAlgebra::CnContainer< MatrixT::ScalarType, MatrixT::ColumnVectorType::csDim, MatrixT::RowVectorType::csDim, DEGREE >::dimension
size_type dimension() const
returns number of variables of the polynomial
Definition: CnContainer.h:283
capd::diffAlgebra::CnContainer< MatrixT::ScalarType, MatrixT::ColumnVectorType::csDim, MatrixT::RowVectorType::csDim, DEGREE >::imageDimension
size_type imageDimension() const
returns number of polynomials (dimension of counterdomain)
Definition: CnContainer.h:291