Main class that encapsulate a double constant. More...
#include <vector_dist_operators.hpp>
Public Types | |
| typedef std::false_type | is_ker |
| 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. More... | |
| __device__ __host__ double | value (const vect_dist_key_dx &k) const |
| Evaluate the expression. More... | |
| 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. More... | |
Private Attributes | |
| double | d |
| constant parameter | |
Main class that encapsulate a double constant.
| prp | no meaning |
Definition at line 1957 of file vector_dist_operators.hpp.
|
inline |
This function must be called before value.
it initialize the expression if needed
Definition at line 1978 of file vector_dist_operators.hpp.
|
inline |
Evaluate the expression.
| k | ignored position in the vector |
It just return the value set in the constructor
Definition at line 2010 of file vector_dist_operators.hpp.
|
inline |
Evaluate the expression.
| k | ignored position in the vector |
It just return the value set in the constructor
Definition at line 1990 of file vector_dist_operators.hpp.