Main class that encapsulate a constant number used in a point expression.
More...
template<typename T>
class point_expression< T >
Main class that encapsulate a constant number used in a point expression.
Definition at line 263 of file Point_operators.hpp.
#include <Point_operators.hpp>
|
typedef int | has_init |
| indicate that init must be called before value
|
|
typedef int | is_expression |
| indicate that this class encapsulate an expression
|
|
typedef T | coord_type |
|
|
__device__ __host__ | point_expression (T &d) |
| constructor from a value
|
|
__device__ __host__ void | init () const |
| This function must be called before value.
|
|
__device__ __host__ const T & | value (const int k) const |
| Evaluate the expression.
|
|
__device__ __host__ T & | value (const int k) |
| Evaluate the expression.
|
|
|
static const unsigned int | nvals = 1 |
| this operation produce a vector as result of size dims
|
|
◆ coord_type
◆ has_init
◆ is_expression
◆ point_expression()
◆ init()
This function must be called before value.
it calculate the scalar product before return the values
Definition at line 295 of file Point_operators.hpp.
◆ value() [1/2]
Evaluate the expression.
- Parameters
-
- Returns
- It just return the velue set in the constructor
Definition at line 318 of file Point_operators.hpp.
◆ value() [2/2]
Evaluate the expression.
- Parameters
-
- Returns
- It just return the velue set in the constructor
Definition at line 306 of file Point_operators.hpp.
◆ nvals
The documentation for this class was generated from the following file: