OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
Monomial< dim > Class Template Reference

Detailed Description

template<unsigned int dim>
class Monomial< dim >

Definition at line 14 of file Monomial.hpp.

Public Member Functions

 Monomial (const Point< dim, unsigned int > &other, unsigned int scalar=1)
 
 Monomial (const Point< dim, long int > &other, unsigned int scalar=1)
 
 Monomial (const unsigned int other[dim])
 
 Monomial (const Monomial< dim > &other)
 
Monomial< dim > & operator= (const Monomial< dim > &other)
 
bool operator== (const Monomial< dim > &other) const
 
unsigned int order () const
 
unsigned int getExponent (unsigned int i) const
 
void setExponent (unsigned int i, unsigned int value)
 
template<typename T >
evaluate (const Point< dim, T > x) const
 
template<typename T >
evaluate (const T x[dim]) const
 
Monomial< dim > getDerivative (const Point< dim, unsigned int > differentialOrder) const
 
__host__ __device__ unsigned int getScalar () const
 

Private Member Functions

void updateSum ()
 

Private Attributes

unsigned int sum = 0
 
Point< dim, unsigned int > exponents
 
unsigned int scalar = 1
 

Friends

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &lhs, Monomial< dim > const &rhs)
 

Constructor & Destructor Documentation

◆ Monomial() [1/5]

template<unsigned int dim>
Monomial< dim >::Monomial

Definition at line 66 of file Monomial.hpp.

◆ Monomial() [2/5]

template<unsigned int dim>
Monomial< dim >::Monomial ( const Point< dim, unsigned int > &  other,
unsigned int  scalar = 1 
)
explicit

Definition at line 73 of file Monomial.hpp.

◆ Monomial() [3/5]

template<unsigned int dim>
Monomial< dim >::Monomial ( const Point< dim, long int > &  other,
unsigned int  scalar = 1 
)
explicit

Definition at line 80 of file Monomial.hpp.

◆ Monomial() [4/5]

template<unsigned int dim>
Monomial< dim >::Monomial ( const unsigned int  other[dim])
explicit

Definition at line 91 of file Monomial.hpp.

◆ Monomial() [5/5]

template<unsigned int dim>
Monomial< dim >::Monomial ( const Monomial< dim > &  other)

Definition at line 95 of file Monomial.hpp.

Member Function Documentation

◆ evaluate() [1/2]

template<unsigned int dim>
template<typename T >
T Monomial< dim >::evaluate ( const Point< dim, T >  x) const

Definition at line 148 of file Monomial.hpp.

◆ evaluate() [2/2]

template<unsigned int dim>
template<typename T >
T Monomial< dim >::evaluate ( const T  x[dim]) const

Definition at line 178 of file Monomial.hpp.

◆ getDerivative()

template<unsigned int dim>
Monomial< dim > Monomial< dim >::getDerivative ( const Point< dim, unsigned int >  differentialOrder) const

Definition at line 159 of file Monomial.hpp.

◆ getExponent()

template<unsigned int dim>
unsigned int Monomial< dim >::getExponent ( unsigned int  i) const

Definition at line 127 of file Monomial.hpp.

◆ getScalar()

template<unsigned int dim>
__host__ __device__ unsigned int Monomial< dim >::getScalar ( ) const
inline

Definition at line 58 of file Monomial.hpp.

◆ operator=()

template<unsigned int dim>
Monomial< dim > & Monomial< dim >::operator= ( const Monomial< dim > &  other)

Definition at line 101 of file Monomial.hpp.

◆ operator==()

template<unsigned int dim>
bool Monomial< dim >::operator== ( const Monomial< dim > &  other) const

Definition at line 140 of file Monomial.hpp.

◆ order()

template<unsigned int dim>
unsigned int Monomial< dim >::order

Definition at line 121 of file Monomial.hpp.

◆ setExponent()

template<unsigned int dim>
void Monomial< dim >::setExponent ( unsigned int  i,
unsigned int  value 
)

Definition at line 133 of file Monomial.hpp.

◆ updateSum()

template<unsigned int dim>
void Monomial< dim >::updateSum
private

Definition at line 110 of file Monomial.hpp.

Friends And Related Symbol Documentation

◆ operator<<

template<unsigned int dim>
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  lhs,
Monomial< dim > const &  rhs 
)
friend

Definition at line 52 of file Monomial.hpp.

Field Documentation

◆ exponents

template<unsigned int dim>
Point<dim, unsigned int> Monomial< dim >::exponents
private

Definition at line 19 of file Monomial.hpp.

◆ scalar

template<unsigned int dim>
unsigned int Monomial< dim >::scalar = 1
private

Definition at line 20 of file Monomial.hpp.

◆ sum

template<unsigned int dim>
unsigned int Monomial< dim >::sum = 0
private

Definition at line 18 of file Monomial.hpp.


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