|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Vector truncated power series. More...
#include <Vps.h>
Public Member Functions | |
| Vps (int nDim, int nVar=0) | |
| Constructor. | |
| Vps (const Matrix< T > &M) | |
| Convert. | |
| Vps (const Vector< T > &V) | |
| Convert from vector. | |
| Vps () | |
| Vps (const Vps< T > &rhs) | |
| ~Vps () | |
| Vps< T > & | operator= (const Vps< T > &) |
| const Tps< T > & | getComponent (int index) const |
| Get component. | |
| void | setComponent (int index, const Tps< T > &value) |
| Set component. | |
| Tps< T > & | operator[] (int index) |
| Get component. | |
| const Tps< T > & | operator[] (int index) const |
| Set component. | |
| void | check () const |
| Check consistency. | |
| Vps< T > | operator+ () const |
| Unary plus. | |
| Vps< T > | operator- () const |
| Unary minus. | |
| Vps< T > & | operator*= (const Tps< T > &y) |
| Multiply by Tps<T> and assign. | |
| Vps< T > & | operator/= (const Tps< T > &y) |
| Divide by Tps<T> and assign. | |
| Vps< T > & | operator*= (const T &y) |
| Multiply by constant and assign. | |
| Vps< T > & | operator/= (const T &y) |
| Divide by constant and assign. | |
| Vps< T > & | operator+= (const Vps< T > &y) |
| Addition. | |
| Vps< T > & | operator-= (const Vps< T > &y) |
| Subtraction. | |
| Vps< T > & | operator+= (const Vector< T > &y) |
| Add and assign. | |
| Vps< T > & | operator-= (const Vector< T > &y) |
| Subtract and assign. | |
| std::istream & | get (std::istream &is) |
| Get a Vps<T> from stream is. | |
| std::ostream & | put (std::ostream &os) const |
| Put a Vps<T> to stream os. | |
| int | getDimension () const |
| Get dimension (number of Tps<T> components). | |
| int | getTopOrder () const |
| Get highest order contained in any component. | |
| int | getTruncOrder () const |
| Get lowest truncation order in any component. | |
| int | getVariables () const |
| Get number of variables (the same in all components). | |
| Vps< T > | filter (int lowOrder, int highOrder) const |
| Extract range of orders, set others to zero. | |
| Vps< T > | truncate (int trunc) |
| Truncate, may also increase truncation order. | |
Protected Attributes | |
| Array1D< Tps< T > > | data |
| int | variables |
| Vps< T >::Vps | ( | int | nDim, |
| int | nVar = 0 ) |
Constructor.
Definition at line 46 of file Vps.hpp.
References data, and variables.
Referenced by filter(), get(), operator*=(), operator*=(), operator+(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), truncate(), Vps(), VpsMap< T >::VpsMap(), VpsMap< T >::VpsMap(), VpsMap< T >::VpsMap(), VpsMap< T >::VpsMap(), VpsMap< T >::VpsMap(), VpsMap< T >::VpsMap(), and VpsMap< T >::VpsMap().
Convert.
Definition at line 59 of file Vps.hpp.
References data, Array2D< T >::ncols(), Array2D< T >::nrows(), and variables.
| Vps< T >::Vps | ( | ) |
| void Vps< T >::check | ( | ) | const |
Check consistency.
Definition at line 108 of file Vps.hpp.
References data, and variables.
Referenced by filter(), get(), getVariables(), setComponent(), VpsMap< T >::substitute(), and truncate().
| std::istream & Vps< T >::get | ( | std::istream & | is | ) |
Get a Vps<T> from stream is.
Definition at line 213 of file Vps.hpp.
References check(), data, and Vps().
Referenced by operator>>(), and operator>>().
| int Vps< T >::getDimension | ( | ) | const |
Get dimension (number of Tps<T> components).
Definition at line 247 of file Vps.hpp.
References data.
Referenced by VpsMap< T >::constantTerm(), VpsMap< T >::constantTerm(), VpsMap< T >::derivative(), filter(), VpsMap< T >::integral(), VpsMap< T >::linearTerms(), VpsMap< T >::linearTerms(), operator*=(), operator*=(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), put(), Tps< T >::substitute(), VpsMap< T >::substitute(), VpsMap< T >::substituteInto(), and truncate().
| int Vps< T >::getTopOrder | ( | ) | const |
Get highest order contained in any component.
Definition at line 253 of file Vps.hpp.
References data, FTpsData< N >::topOrder, and Tps< T >::getMaxOrder().
Referenced by VpsMap< T >::constantTerm(), and VpsMap< T >::substitute().
| int Vps< T >::getTruncOrder | ( | ) | const |
Get lowest truncation order in any component.
Definition at line 266 of file Vps.hpp.
References data, Tps< T >::getTruncOrder(), and Tps< T >::truncOrder.
Referenced by VpsMap< T >::substitute(), and VpsMap< T >::substitute().
| int Vps< T >::getVariables | ( | ) | const |
Get number of variables (the same in all components).
Definition at line 279 of file Vps.hpp.
References check(), and variables.
Referenced by VpsMap< T >::constantTerm(), VpsMap< T >::derivative(), VpsMap< T >::integral(), VpsMap< T >::linearTerms(), VpsMap< T >::linearTerms(), and VpsMap< T >::substitute().
Multiply by constant and assign.
Definition at line 153 of file Vps.hpp.
References data, getDimension(), and Vps().
Add and assign.
Definition at line 191 of file Vps.hpp.
References data, getDimension(), Array1D< T >::size(), and Vps().
Addition.
Definition at line 169 of file Vps.hpp.
References data, getDimension(), and Vps().
Subtract and assign.
Definition at line 202 of file Vps.hpp.
References data, getDimension(), Array1D< T >::size(), and Vps().
Subtraction.
Definition at line 180 of file Vps.hpp.
References data, getDimension(), and Vps().
Divide by constant and assign.
Definition at line 160 of file Vps.hpp.
References data, getDimension(), and Vps().
Divide by Tps<T> and assign.
Definition at line 145 of file Vps.hpp.
References data, getDimension(), Tps< T >::getGlobalTruncOrder(), Tps< T >::inverse(), and Vps().
| std::ostream & Vps< T >::put | ( | std::ostream & | os | ) | const |
Put a Vps<T> to stream os.
Definition at line 238 of file Vps.hpp.
References data, and getDimension().
Referenced by operator<<(), and operator<<().
Definition at line 143 of file Vps.h.
Referenced by check(), VpsMap< T >::constantTerm(), VpsMap< T >::constantTerm(), VpsMap< T >::derivative(), filter(), get(), getComponent(), getDimension(), getTopOrder(), getTruncOrder(), VpsMap< T >::integral(), VpsMap< T >::linearTerms(), VpsMap< T >::linearTerms(), operator*=(), operator*=(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/=(), operator/=(), operator=(), operator[](), operator[](), put(), setComponent(), VpsMap< T >::substitute(), VpsMap< T >::substituteInto(), truncate(), Vps(), Vps(), Vps(), Vps(), and Vps().
|
mutableprotected |
Definition at line 146 of file Vps.h.
Referenced by check(), filter(), getVariables(), operator-(), operator=(), setComponent(), VpsMap< T >::substitute(), truncate(), Vps(), Vps(), Vps(), Vps(), and Vps().