OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | List of all members
VpsMap< T > Class Template Reference

Truncate power series map. More...

#include <VpsMap.h>

Inheritance diagram for VpsMap< T >:
Inheritance graph
[legend]
Collaboration diagram for VpsMap< T >:
Collaboration graph
[legend]

Public Member Functions

 VpsMap (int nDim, int nVar)
 Constructor. More...
 
 VpsMap (const Vps< T > &rhs)
 Convert. More...
 
 VpsMap (int nDim, const Tps< T > rhs[])
 Constructor. More...
 
 VpsMap (const Matrix< T > &M)
 Convert. More...
 
 VpsMap (const Vector< T > &V)
 Convert. More...
 
 VpsMap ()
 
 VpsMap (const VpsMap< T > &rhs)
 
 ~VpsMap ()
 
VpsMap< T > & operator= (const VpsMap< T > &y)
 
VpsMap< T > substitute (const VpsMap< T > &vv) const
 Substitute. More...
 
VpsMap< T > substitute (const Matrix< T > &M) const
 Substitute. More...
 
VpsMap< T > substitute (const VpsMap< T > &y, int trunc) const
 Substitute and truncate. More...
 
VpsMap< T > substituteInto (const Matrix< T > &x) const
 Substitute. More...
 
Vector< T > constantTerm (const Vector< T > &y) const
 Evaluate map at point. More...
 
Vector< T > constantTerm () const
 Evaluate map at origin. More...
 
Matrix< T > linearTerms (const Vector< T > &y) const
 Extract linear terms at point. More...
 
Matrix< T > linearTerms () const
 Extract linear terms at origin. More...
 
VpsMap< T > derivative (int var) const
 Derivative with respect to variable [b]var[/b]. More...
 
VpsMap< T > integral (int var) const
 Integral with respect to variable [b]var[/b]. More...
 
- Public Member Functions inherited from Vps< T >
 Vps (int nDim, int nVar=0)
 Constructor. More...
 
 Vps (const Matrix< T > &M)
 Convert. More...
 
 Vps (const Vector< T > &V)
 Convert from vector. More...
 
 Vps ()
 
 Vps (const Vps< T > &rhs)
 
 ~Vps ()
 
Vps< T > & operator= (const Vps< T > &)
 
const Tps< T > & getComponent (int index) const
 Get component. More...
 
void setComponent (int index, const Tps< T > &value)
 Set component. More...
 
Tps< T > & operator[] (int index)
 Get component. More...
 
const Tps< T > & operator[] (int index) const
 Set component. More...
 
void check () const
 Check consistency. More...
 
Vps< T > operator+ () const
 Unary plus. More...
 
Vps< T > operator- () const
 Unary minus. More...
 
Vps< T > & operator*= (const Tps< T > &y)
 Multiply by Tps<T> and assign. More...
 
Vps< T > & operator/= (const Tps< T > &y)
 Divide by Tps<T> and assign. More...
 
Vps< T > & operator*= (const T &y)
 Multiply by constant and assign. More...
 
Vps< T > & operator/= (const T &y)
 Divide by constant and assign. More...
 
Vps< T > & operator+= (const Vps< T > &y)
 Addition. More...
 
Vps< T > & operator-= (const Vps< T > &y)
 Subtraction. More...
 
Vps< T > & operator+= (const Vector< T > &y)
 Add and assign. More...
 
Vps< T > & operator-= (const Vector< T > &y)
 Subtract and assign. More...
 
std::istream & get (std::istream &is)
 Get a Vps<T> from stream is. More...
 
std::ostream & put (std::ostream &os) const
 Put a Vps<T> to stream os. More...
 
int getDimension () const
 Get dimension (number of Tps<T> components). More...
 
int getTopOrder () const
 Get highest order contained in any component. More...
 
int getTruncOrder () const
 Get lowest truncation order in any component. More...
 
int getVariables () const
 Get number of variables (the same in all components). More...
 
Vps< T > filter (int lowOrder, int highOrder) const
 Extract range of orders, set others to zero. More...
 
Vps< T > truncate (int trunc)
 Truncate, may also increase truncation order. More...
 

Additional Inherited Members

- Protected Attributes inherited from Vps< T >
Array1D< Tps< T > > data
 
int variables
 

Detailed Description

template<class T>
class VpsMap< T >

Truncate power series map.

Definition at line 43 of file VpsMap.h.

Constructor & Destructor Documentation

◆ VpsMap() [1/7]

template<class T >
VpsMap< T >::VpsMap ( int  nDim,
int  nVar 
)
inline

Constructor.

Definition at line 173 of file VpsMap.h.

◆ VpsMap() [2/7]

template<class T >
VpsMap< T >::VpsMap ( const Vps< T > &  rhs)
inline

Convert.

Definition at line 185 of file VpsMap.h.

◆ VpsMap() [3/7]

template<class T >
VpsMap< T >::VpsMap ( int  nDim,
const Tps< T >  rhs[] 
)
inline

Constructor.

Definition at line 191 of file VpsMap.h.

◆ VpsMap() [4/7]

template<class T >
VpsMap< T >::VpsMap ( const Matrix< T > &  M)
inline

Convert.

Definition at line 197 of file VpsMap.h.

◆ VpsMap() [5/7]

template<class T >
VpsMap< T >::VpsMap ( const Vector< T > &  V)
inline

Convert.

Definition at line 203 of file VpsMap.h.

◆ VpsMap() [6/7]

template<class T >
VpsMap< T >::VpsMap
inline

Definition at line 167 of file VpsMap.h.

◆ VpsMap() [7/7]

template<class T >
VpsMap< T >::VpsMap ( const VpsMap< T > &  rhs)
inline

Definition at line 179 of file VpsMap.h.

◆ ~VpsMap()

template<class T >
VpsMap< T >::~VpsMap
inline

Definition at line 209 of file VpsMap.h.

Member Function Documentation

◆ constantTerm() [1/2]

template<class T >
Vector< T > VpsMap< T >::constantTerm

Evaluate map at origin.

Definition at line 266 of file VpsMap.h.

◆ constantTerm() [2/2]

template<class T >
Vector< T > VpsMap< T >::constantTerm ( const Vector< T > &  y) const

◆ derivative()

template<class T >
VpsMap< T > VpsMap< T >::derivative ( int  var) const

Derivative with respect to variable [b]var[/b].

Definition at line 302 of file VpsMap.h.

References VpsMap< T >::derivative().

Referenced by VpsMap< T >::derivative().

Here is the call graph for this function:

◆ integral()

template<class T >
VpsMap< T > VpsMap< T >::integral ( int  var) const

Integral with respect to variable [b]var[/b].

Definition at line 314 of file VpsMap.h.

References VpsMap< T >::integral().

Referenced by VpsMap< T >::integral().

Here is the call graph for this function:

◆ linearTerms() [1/2]

template<class T >
Matrix< T > VpsMap< T >::linearTerms

Extract linear terms at origin.

Definition at line 288 of file VpsMap.h.

◆ linearTerms() [2/2]

template<class T >
Matrix< T > VpsMap< T >::linearTerms ( const Vector< T > &  y) const

Extract linear terms at point.

Definition at line 274 of file VpsMap.h.

References Array2D< T >::ncols(), and Array2D< T >::nrows().

Here is the call graph for this function:

◆ operator=()

template<class T >
VpsMap< T > & VpsMap< T >::operator= ( const VpsMap< T > &  y)
inline

Definition at line 214 of file VpsMap.h.

References Vps< T >::operator=().

Here is the call graph for this function:

◆ substitute() [1/3]

template<class T >
VpsMap< T > VpsMap< T >::substitute ( const Matrix< T > &  M) const
inline

Substitute.

Definition at line 227 of file VpsMap.h.

◆ substitute() [2/3]

template<class T >
VpsMap< T > VpsMap< T >::substitute ( const VpsMap< T > &  vv) const
inline

Substitute.

Definition at line 221 of file VpsMap.h.

◆ substitute() [3/3]

template<class T >
VpsMap< T > VpsMap< T >::substitute ( const VpsMap< T > &  y,
int  trunc 
) const

◆ substituteInto()

template<class T >
VpsMap< T > VpsMap< T >::substituteInto ( const Matrix< T > &  x) const

Substitute.

Definition at line 371 of file VpsMap.h.

References Array2D< T >::ncols(), and Array2D< T >::nrows().

Referenced by operator*().

Here is the call graph for this function:

The documentation for this class was generated from the following files: