Point square norm operation.
More...
#include <Point_operators_functions.hpp>
|
|
typedef orig | orig_type |
| |
|
typedef int | has_init |
| | indicate that init must be called before value
|
| |
|
typedef int | is_expression |
| | indicate that this class encapsulate an expression
|
| |
|
typedef orig::coord_type | return_type |
| | return type of the expression
|
| |
|
typedef exp1::coord_type | coord_type |
| |
|
|
__device__ __host__ | point_expression_op (const exp1 &o1) |
| | constructor from an expression
|
| |
| __device__ __host__ void | init () const |
| | This function must be called before value. More...
|
| |
| template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type> |
| __device__ __host__ r_type | value (size_t k) const |
| | Evaluate the expression. More...
|
| |
|
template<typename T > |
| __device__ __host__ | operator T () const |
| | Cast operator.
|
| |
|
|
static const unsigned int | nvals = 1 |
| | this operation produce a vector as result of size dims
|
| |
|
|
const exp1 | o1 |
| | expression
|
| |
|
std::remove_const< typename orig::coord_type >::type | scal |
| | result of the expression
|
| |
template<typename orig, typename exp1, typename exp2>
class point_expression_op< orig, exp1, exp2, POINT_NORM2 >
Point square norm operation.
- Template Parameters
-
| orig | original type |
| exp1 | expression1 |
| exp2 | expression2 |
| op | operation |
Definition at line 245 of file Point_operators_functions.hpp.
◆ init()
template<typename orig , typename exp1 , typename exp2 >
This function must be called before value.
it calculate the scalar product before return the values
Definition at line 281 of file Point_operators_functions.hpp.
◆ value()
template<typename orig , typename exp1 , typename exp2 >
template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type>
| __device__ __host__ r_type point_expression_op< orig, exp1, exp2, POINT_NORM2 >::value |
( |
size_t |
k | ) |
const |
|
inline |
The documentation for this class was generated from the following file: