OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
FMonomial< N > Class Template Reference

Representation of the exponents for a monomial with fixed dimension. More...

#include <FMonomial.h>

Public Member Functions

 FMonomial (int var)
 Constructor, defines variable var. More...
 
 FMonomial ()
 
 FMonomial (const FMonomial &)
 
 ~FMonomial ()
 
const FMonomialoperator= (const FMonomial &)
 
int & operator[] (int index)
 Return reference to exponent. More...
 
int operator[] (int index) const
 Return value of exponent. More...
 
FMonomial operator* (const FMonomial &rhs) const
 Get exponent set of a product. More...
 
int getOrder () const
 Compute the monomial's order. More...
 
int getVariables () const
 Get the monomial's number of variables. More...
 

Private Attributes

int array [N]
 

Detailed Description

template<int N>
class FMonomial< N >

Representation of the exponents for a monomial with fixed dimension.

Definition at line 32 of file FMonomial.h.

Constructor & Destructor Documentation

template<int N>
FMonomial< N >::FMonomial ( int  var)
explicit

Constructor, defines variable var.

Definition at line 82 of file FMonomial.h.

template<int N>
FMonomial< N >::FMonomial ( )

Definition at line 70 of file FMonomial.h.

template<int N>
FMonomial< N >::FMonomial ( const FMonomial< N > &  rhs)

Definition at line 76 of file FMonomial.h.

References FMonomial< N >::array.

template<int N>
FMonomial< N >::~FMonomial ( )

Definition at line 89 of file FMonomial.h.

Member Function Documentation

template<int N>
int FMonomial< N >::getOrder ( ) const

Compute the monomial's order.

Definition at line 124 of file FMonomial.h.

Referenced by FTps< T, N >::makeMonomial().

template<int N>
int FMonomial< N >::getVariables ( ) const

Get the monomial's number of variables.

Definition at line 130 of file FMonomial.h.

template<int N>
FMonomial< N > FMonomial< N >::operator* ( const FMonomial< N > &  rhs) const

Get exponent set of a product.

Definition at line 116 of file FMonomial.h.

References FMonomial< N >::array.

template<int N>
const FMonomial< N > & FMonomial< N >::operator= ( const FMonomial< N > &  rhs)

Definition at line 94 of file FMonomial.h.

References FMonomial< N >::array.

template<int N>
int & FMonomial< N >::operator[] ( int  index)

Return reference to exponent.

Definition at line 104 of file FMonomial.h.

template<int N>
int FMonomial< N >::operator[] ( int  index) const

Return value of exponent.

Definition at line 110 of file FMonomial.h.

Member Data Documentation

template<int N>
int FMonomial< N >::array[N]
private

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