OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
vector_dist_expression< prp, double > Class Template Reference

Main class that encapsulate a double constant. More...

Detailed Description

template<unsigned int prp>
class vector_dist_expression< prp, double >

Main class that encapsulate a double constant.

Parameters
prpno meaning

Definition at line 1996 of file vector_dist_operators.hpp.

#include <vector_dist_operators.hpp>

Public Types

typedef std::false_type is_ker
 
typedef boost::mpl::bool_< false > is_sort
 result for is sort
 
typedef void NN_type
 

Public Member Functions

 vector_dist_expression (const double &d)
 constructor from a constant expression
 
void init () const
 This function must be called before value.
 
__device__ __host__ double value (const vect_dist_key_dx &k) const
 Evaluate the expression.
 
template<typename Sys_eqs , typename pmap_type , typename unordered_map_type , typename coeff_type >
void value_nz (pmap_type &p_map, const vect_dist_key_dx &key, unordered_map_type &cols, coeff_type &coeff, unsigned int comp) const
 
__host__ __device__ double value (const unsigned int &k) const
 Evaluate the expression.
 

Private Attributes

double d
 constant parameter
 

Member Typedef Documentation

◆ is_ker

template<unsigned int prp>
typedef std::false_type vector_dist_expression< prp, double >::is_ker

Definition at line 2003 of file vector_dist_operators.hpp.

◆ is_sort

template<unsigned int prp>
typedef boost::mpl::bool_<false> vector_dist_expression< prp, double >::is_sort

result for is sort

Definition at line 2006 of file vector_dist_operators.hpp.

◆ NN_type

template<unsigned int prp>
typedef void vector_dist_expression< prp, double >::NN_type

Definition at line 2008 of file vector_dist_operators.hpp.

Constructor & Destructor Documentation

◆ vector_dist_expression()

template<unsigned int prp>
vector_dist_expression< prp, double >::vector_dist_expression ( const double &  d)
inline

constructor from a constant expression

Definition at line 2011 of file vector_dist_operators.hpp.

Member Function Documentation

◆ init()

template<unsigned int prp>
void vector_dist_expression< prp, double >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 2020 of file vector_dist_operators.hpp.

◆ value() [1/2]

template<unsigned int prp>
__host__ __device__ double vector_dist_expression< prp, double >::value ( const unsigned int &  k) const
inline

Evaluate the expression.

Parameters
kignored position in the vector

It just return the value set in the constructor

Returns
the constant value

Definition at line 2052 of file vector_dist_operators.hpp.

◆ value() [2/2]

template<unsigned int prp>
__device__ __host__ double vector_dist_expression< prp, double >::value ( const vect_dist_key_dx k) const
inline

Evaluate the expression.

Parameters
kignored position in the vector

It just return the value set in the constructor

Returns
the constant value

Definition at line 2032 of file vector_dist_operators.hpp.

◆ value_nz()

template<unsigned int prp>
template<typename Sys_eqs , typename pmap_type , typename unordered_map_type , typename coeff_type >
void vector_dist_expression< prp, double >::value_nz ( pmap_type &  p_map,
const vect_dist_key_dx key,
unordered_map_type &  cols,
coeff_type &  coeff,
unsigned int  comp 
) const
inline

Definition at line 2039 of file vector_dist_operators.hpp.

Field Documentation

◆ d

template<unsigned int prp>
double vector_dist_expression< prp, double >::d
private

constant parameter

Definition at line 1999 of file vector_dist_operators.hpp.


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