OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | List of all members
TpsMonomial Class Reference

Exponent array for Tps<T>. More...

#include <TpsMonomial.h>

Collaboration diagram for TpsMonomial:
Collaboration graph
[legend]

Public Member Functions

 TpsMonomial (int nVar)
 Constructor. More...
 
 TpsMonomial (int nVar, int var)
 Constructor. More...
 
 TpsMonomial ()
 
 TpsMonomial (const TpsMonomial &)
 
 ~TpsMonomial ()
 
const TpsMonomialoperator= (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
 

Detailed Description

Exponent array for Tps<T>.

Definition at line 31 of file TpsMonomial.h.

Constructor & Destructor Documentation

◆ TpsMonomial() [1/4]

TpsMonomial::TpsMonomial ( int  nVar)

Constructor.

Definition at line 38 of file TpsMonomial.cpp.

◆ TpsMonomial() [2/4]

TpsMonomial::TpsMonomial ( int  nVar,
int  var 
)

Constructor.

Definition at line 43 of file TpsMonomial.cpp.

References array.

◆ TpsMonomial() [3/4]

TpsMonomial::TpsMonomial ( )

Definition at line 28 of file TpsMonomial.cpp.

◆ TpsMonomial() [4/4]

TpsMonomial::TpsMonomial ( const TpsMonomial rhs)

Definition at line 33 of file TpsMonomial.cpp.

◆ ~TpsMonomial()

TpsMonomial::~TpsMonomial ( )

Definition at line 49 of file TpsMonomial.cpp.

Member Function Documentation

◆ getIndex()

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().

Here is the call graph for this function:

◆ getOrder()

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().

Here is the call graph for this function:

◆ getVariables()

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().

Here is the call graph for this function:

◆ operator*()

TpsMonomial TpsMonomial::operator* ( const TpsMonomial rhs) const

Product.

Definition at line 69 of file TpsMonomial.cpp.

References array, getVariables(), and Hypervolume::n.

Here is the call graph for this function:

◆ operator=()

const TpsMonomial & TpsMonomial::operator= ( const TpsMonomial rhs)

Definition at line 53 of file TpsMonomial.cpp.

References array.

◆ operator[]() [1/2]

int & TpsMonomial::operator[] ( int  index)

Get exponent.

Definition at line 59 of file TpsMonomial.cpp.

References array.

◆ operator[]() [2/2]

int TpsMonomial::operator[] ( int  index) const

Get exponent.

Definition at line 64 of file TpsMonomial.cpp.

References array.

Member Data Documentation

◆ array

Array1D<int> TpsMonomial::array
private

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