OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
MonomialBasis< dim, T, vector_type, Args > Class Template Reference

Detailed Description

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
class MonomialBasis< dim, T, vector_type, Args >

Definition at line 16 of file MonomialBasis.hpp.

Public Member Functions

 MonomialBasis (const vector_type< unsigned int, Args... > &degrees, unsigned int convergenceOrder)
 
 MonomialBasis (unsigned int degrees[dim], unsigned int convergenceOrder)
 
__host__ __device__ MonomialBasis (const vector_type< T, Args... > &basis)
 
__host__ __device__ MonomialBasis (const MonomialBasis &other)
 
__host__ __device__ MonomialBasisoperator= (const MonomialBasis &other)
 
__host__ __device__ unsigned int size () const
 
__host__ __device__ const T & getElement (size_t i) const
 
__host__ __device__ T & getElement (size_t i)
 
__host__ __device__ const vector_type< T, Args... > & getElements () const
 
__host__ __device__ MonomialBasis< dim, T, vector_type, Args... > getDerivative (Point< dim, unsigned int > differentialOrder) const
 
__host__ __device__ bool operator== (const MonomialBasis &other) const
 
__host__ __device__ vector_type< T, Args... > & getBasis ()
 

Private Member Functions

void generateBasis (vector_type< unsigned int, Args... > m, unsigned int r)
 

Private Attributes

vector_type< T, Args... > basis
 

Friends

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &lhs, MonomialBasis< dim, T, vector_type, Args... > const &rhs)
 

Constructor & Destructor Documentation

◆ MonomialBasis() [1/4]

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
MonomialBasis< dim, T, vector_type, Args >::MonomialBasis ( )
inline

Definition at line 22 of file MonomialBasis.hpp.

◆ MonomialBasis() [2/4]

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ MonomialBasis< dim, T, vector_type, Args >::MonomialBasis ( const vector_type< unsigned int, Args... > &  degrees,
unsigned int  convergenceOrder 
)

Definition at line 70 of file MonomialBasis.hpp.

◆ MonomialBasis() [3/4]

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
__host__ __device__ MonomialBasis< dim, T, vector_type, Args >::MonomialBasis ( const vector_type< T, Args... > &  basis)
inlineexplicit

Definition at line 30 of file MonomialBasis.hpp.

◆ MonomialBasis() [4/4]

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ MonomialBasis< dim, T, vector_type, Args >::MonomialBasis ( const MonomialBasis< dim, T, vector_type, Args > &  other)

Definition at line 80 of file MonomialBasis.hpp.

Member Function Documentation

◆ generateBasis()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
void MonomialBasis< dim, T, vector_type, Args >::generateBasis ( vector_type< unsigned int, Args... >  m,
unsigned int  r 
)
private

Definition at line 111 of file MonomialBasis.hpp.

◆ getBasis()

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
__host__ __device__ vector_type< T, Args... > & MonomialBasis< dim, T, vector_type, Args >::getBasis ( )
inline

Definition at line 48 of file MonomialBasis.hpp.

◆ getDerivative()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ MonomialBasis< dim, T, vector_type, Args... > MonomialBasis< dim, T, vector_type, Args >::getDerivative ( Point< dim, unsigned int >  differentialOrder) const

Definition at line 163 of file MonomialBasis.hpp.

◆ getElement() [1/2]

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ T & MonomialBasis< dim, T, vector_type, Args >::getElement ( size_t  i)

Definition at line 105 of file MonomialBasis.hpp.

◆ getElement() [2/2]

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ const T & MonomialBasis< dim, T, vector_type, Args >::getElement ( size_t  i) const

Definition at line 99 of file MonomialBasis.hpp.

◆ getElements()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ const vector_type< T, Args... > & MonomialBasis< dim, T, vector_type, Args >::getElements

Definition at line 157 of file MonomialBasis.hpp.

◆ operator=()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ MonomialBasis< dim, T, vector_type, Args... > & MonomialBasis< dim, T, vector_type, Args >::operator= ( const MonomialBasis< dim, T, vector_type, Args > &  other)

Definition at line 86 of file MonomialBasis.hpp.

◆ operator==()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ bool MonomialBasis< dim, T, vector_type, Args >::operator== ( const MonomialBasis< dim, T, vector_type, Args > &  other) const

Definition at line 178 of file MonomialBasis.hpp.

◆ size()

template<unsigned int dim, typename T , template< typename, template< typename... > class... > class vector_type, template< typename... > class... Args>
__host__ __device__ unsigned int MonomialBasis< dim, T, vector_type, Args >::size

Definition at line 93 of file MonomialBasis.hpp.

Friends And Related Symbol Documentation

◆ operator<<

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  lhs,
MonomialBasis< dim, T, vector_type, Args... > const &  rhs 
)
friend

Definition at line 51 of file MonomialBasis.hpp.

Field Documentation

◆ basis

template<unsigned int dim, typename T = Monomial<dim>, template< typename, template< typename... > class... > class vector_type = openfpm::vector_std, template< typename... > class... Args>
vector_type<T, Args...> MonomialBasis< dim, T, vector_type, Args >::basis
private

Definition at line 19 of file MonomialBasis.hpp.


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