OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Exponent array for Tps<T>. More...
#include <TpsMonomial.h>
Public Member Functions | |
TpsMonomial (int nVar) | |
Constructor. More... | |
TpsMonomial (int nVar, int var) | |
Constructor. More... | |
TpsMonomial () | |
TpsMonomial (const TpsMonomial &) | |
~TpsMonomial () | |
const TpsMonomial & | operator= (const TpsMonomial &) |
int & | operator[] (int index) |
Get exponent. More... | |
int | operator[] (int index) const |
Get exponent. More... | |
TpsMonomial | operator* (const TpsMonomial &rhs) const |
Product. More... | |
int | getIndex () const |
Convert. More... | |
int | getOrder () const |
Get order. More... | |
int | getVariables () const |
Get variables. More... | |
Private Attributes | |
Array1D< int > | array |
Exponent array for Tps<T>.
Definition at line 31 of file TpsMonomial.h.
TpsMonomial::TpsMonomial | ( | int | nVar | ) |
Constructor.
Definition at line 38 of file TpsMonomial.cpp.
TpsMonomial::TpsMonomial | ( | int | nVar, |
int | var | ||
) |
TpsMonomial::TpsMonomial | ( | ) |
Definition at line 28 of file TpsMonomial.cpp.
TpsMonomial::TpsMonomial | ( | const TpsMonomial & | rhs | ) |
Definition at line 33 of file TpsMonomial.cpp.
TpsMonomial::~TpsMonomial | ( | ) |
Definition at line 49 of file TpsMonomial.cpp.
int TpsMonomial::getIndex | ( | ) | const |
Convert.
Definition at line 77 of file TpsMonomial.cpp.
References array, getOrder(), TpsData::getTpsData(), TpsData::indexMonomial(), and Array1D< T >::size().
Referenced by Tps< T >::get(), Tps< T >::getCoefficient(), Tps< T >::operator[](), and Tps< T >::setCoefficient().
int TpsMonomial::getOrder | ( | ) | const |
Get order.
Definition at line 83 of file TpsMonomial.cpp.
References array, and Array1D< T >::size().
Referenced by getIndex(), and Tps< T >::makeMonomial().
int TpsMonomial::getVariables | ( | ) | const |
Get variables.
Definition at line 94 of file TpsMonomial.cpp.
References array, and Array1D< T >::size().
Referenced by Tps< T >::getCoefficient(), Tps< T >::makeMonomial(), operator*(), and Tps< T >::setCoefficient().
TpsMonomial TpsMonomial::operator* | ( | const TpsMonomial & | rhs | ) | const |
Product.
Definition at line 69 of file TpsMonomial.cpp.
References array, getVariables(), and Hypervolume::n.
const TpsMonomial & TpsMonomial::operator= | ( | const TpsMonomial & | rhs | ) |
Definition at line 53 of file TpsMonomial.cpp.
References array.
int & TpsMonomial::operator[] | ( | int | index | ) |
int TpsMonomial::operator[] | ( | int | index | ) | const |
|
private |
Definition at line 78 of file TpsMonomial.h.
Referenced by getIndex(), getOrder(), getVariables(), operator*(), operator=(), operator[](), and TpsMonomial().