expression that subtract two points More...
expression that subtract two points
orig | original vector |
exp1 | expression 1 |
exp2 | expression 2 |
Definition at line 527 of file Point_operators.hpp.
#include <Point_operators.hpp>
Public Types | |
typedef orig | orig_type |
original type | |
typedef int | is_expression |
indicate that is an expression | |
typedef int | has_init |
indicate that this class has an init function | |
typedef orig::coord_type | return_type |
return type of the expression evaluation | |
typedef first_or_second_pt< has_coordtype< exp1 >::value, exp1, exp2 >::coord_type | coord_type |
The type of the internal vector. | |
Public Member Functions | |
__device__ __host__ | point_expression_op (const exp1 &o1) |
__device__ __host__ void | init () const |
initialize the the expression | |
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 | |
template<typename T , typename check = typename std::enable_if<!std::is_same<T,orig>::value >::type> | |
__device__ __host__ | operator T () const |
casting to a type T | |
Static Public Attributes | |
static const unsigned int | nvals = exp1::nvals |
result dimensionality of this expression | |
Private Attributes | |
const exp1 | o1 |
expression | |
orig::coord_type | scal |
scalar value produced by the expression | |
typedef first_or_second_pt<has_coordtype<exp1>::value,exp1,exp2>::coord_type point_expression_op< orig, exp1, exp2, POINT_SUB_UNI >::coord_type |
The type of the internal vector.
Definition at line 553 of file Point_operators.hpp.
typedef int point_expression_op< orig, exp1, exp2, POINT_SUB_UNI >::has_init |
indicate that this class has an init function
Definition at line 544 of file Point_operators.hpp.
typedef int point_expression_op< orig, exp1, exp2, POINT_SUB_UNI >::is_expression |
indicate that is an expression
Definition at line 541 of file Point_operators.hpp.
typedef orig point_expression_op< orig, exp1, exp2, POINT_SUB_UNI >::orig_type |
original type
Definition at line 538 of file Point_operators.hpp.
typedef orig::coord_type point_expression_op< orig, exp1, exp2, POINT_SUB_UNI >::return_type |
return type of the expression evaluation
Definition at line 547 of file Point_operators.hpp.
|
inline |
constructor from expression
o1 | expression1 |
Definition at line 560 of file Point_operators.hpp.
|
inline |
initialize the the expression
Definition at line 565 of file Point_operators.hpp.
|
inline |
casting to a type T
Definition at line 585 of file Point_operators.hpp.
|
inline |
evaluate the expression
k | evaluate in k |
Definition at line 578 of file Point_operators.hpp.
|
static |
result dimensionality of this expression
Definition at line 550 of file Point_operators.hpp.
|
private |
expression
Definition at line 530 of file Point_operators.hpp.
|
mutableprivate |
scalar value produced by the expression
Definition at line 533 of file Point_operators.hpp.