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

Detailed Description

template<unsigned int dim>
class Monomial_gpu< dim >

Definition at line 12 of file Monomial.cuh.

Public Member Functions

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

Private Member Functions

__host__ __device__ void updateSum ()
 

Private Attributes

unsigned int sum = 0
 
unsigned int exponents [dim]
 
unsigned int scalar = 1
 

Constructor & Destructor Documentation

◆ Monomial_gpu() [1/6]

template<unsigned int dim>
__host__ __device__ Monomial_gpu< dim >::Monomial_gpu

Definition at line 46 of file Monomial.cuh.

◆ Monomial_gpu() [2/6]

template<unsigned int dim>
__host__ __device__ Monomial_gpu< dim >::Monomial_gpu ( const Monomial_gpu< dim > &  other)

Definition at line 77 of file Monomial.cuh.

◆ Monomial_gpu() [3/6]

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

Definition at line 85 of file Monomial.cuh.

◆ Monomial_gpu() [4/6]

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

Definition at line 53 of file Monomial.cuh.

◆ Monomial_gpu() [5/6]

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

Definition at line 61 of file Monomial.cuh.

◆ Monomial_gpu() [6/6]

template<unsigned int dim>
__host__ __device__ Monomial_gpu< dim >::Monomial_gpu ( const unsigned int  other[dim])
explicit

Definition at line 69 of file Monomial.cuh.

Member Function Documentation

◆ evaluate() [1/2]

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

Definition at line 156 of file Monomial.cuh.

◆ evaluate() [2/2]

template<unsigned int dim>
template<typename T >
__host__ __device__ T Monomial_gpu< dim >::evaluate ( const T(&)  x[dim]) const

Definition at line 167 of file Monomial.cuh.

◆ getDerivative()

template<unsigned int dim>
__host__ __device__ Monomial_gpu< dim > Monomial_gpu< dim >::getDerivative ( const Point< dim, unsigned int >  differentialOrder) const

Definition at line 177 of file Monomial.cuh.

◆ getExponent()

template<unsigned int dim>
__host__ __device__ unsigned int Monomial_gpu< dim >::getExponent ( unsigned int  i) const

Definition at line 129 of file Monomial.cuh.

◆ getScalar()

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

Definition at line 36 of file Monomial.cuh.

◆ operator=() [1/2]

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

Definition at line 104 of file Monomial.cuh.

◆ operator=() [2/2]

template<unsigned int dim>
__host__ __device__ Monomial_gpu< dim > & Monomial_gpu< dim >::operator= ( const Monomial_gpu< dim > &  other)

Definition at line 93 of file Monomial.cuh.

◆ operator==()

template<unsigned int dim>
__host__ __device__ bool Monomial_gpu< dim >::operator== ( const Monomial_gpu< dim > &  other) const

Definition at line 142 of file Monomial.cuh.

◆ order()

template<unsigned int dim>
__host__ __device__ unsigned int Monomial_gpu< dim >::order

Definition at line 123 of file Monomial.cuh.

◆ setExponent()

template<unsigned int dim>
__host__ __device__ void Monomial_gpu< dim >::setExponent ( unsigned int  i,
unsigned int  value 
)

Definition at line 135 of file Monomial.cuh.

◆ swap()

template<unsigned int dim>
__host__ __device__ void Monomial_gpu< dim >::swap ( const Monomial_gpu< dim > &  other)

Definition at line 195 of file Monomial.cuh.

◆ updateSum()

template<unsigned int dim>
__host__ __device__ void Monomial_gpu< dim >::updateSum
private

Definition at line 115 of file Monomial.cuh.

Field Documentation

◆ exponents

template<unsigned int dim>
unsigned int Monomial_gpu< dim >::exponents[dim]
private

Definition at line 16 of file Monomial.cuh.

◆ scalar

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

Definition at line 17 of file Monomial.cuh.

◆ sum

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

Definition at line 15 of file Monomial.cuh.


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