Division operation. More...
Division operation.
exp1 | expression1 |
exp2 | expression2 |
Definition at line 768 of file Point_operators.hpp.
#include <Point_operators.hpp>
Public Types | |
typedef first_or_second_pt< has_coordtype< exp1 >::value, exp1, exp2 >::coord_type | coord_type |
The type of the internal vector. | |
typedef orig | orig_type |
original type | |
typedef int | is_expression |
indicate that this class encapsulate an expression | |
typedef int | has_init |
indicate that init must be called before value | |
typedef orig | return_type |
return type of the expression | |
Public Member Functions | |
__device__ __host__ | point_expression_op (const exp1 &o1, const exp2 &o2) |
constructor from expression 1 and expression 2 | |
__device__ __host__ void | init () const |
This function must be called before value. | |
template<typename r_type = typename best_conv<typename std::remove_reference<decltype(o1.value(0))>::type, typename std::remove_reference<decltype(o2.value(0))>::type>::type> | |
__device__ __host__ r_type | value (size_t k) const |
Evaluate the expression. | |
template<typename T , typename test = typename boost::disable_if_c< std::is_same<T,orig>::value || exp1::nvals != 1 || exp2::nvals != 1 >::type> | |
__device__ __host__ | operator T () const |
conversion of the class to double or float or ... | |
Static Public Attributes | |
static const unsigned int | nvals = r_type_dim<exp1::nvals,exp2::nvals,POINT_DIV>::value |
this operation produce a vector as result of size dims | |
Private Attributes | |
const exp1 | o1 |
expression 1 | |
const exp2 | o2 |
expression 2 | |
typedef first_or_second_pt<has_coordtype<exp1>::value,exp1,exp2>::coord_type point_expression_op< orig, exp1, exp2, POINT_DIV >::coord_type |
The type of the internal vector.
Definition at line 779 of file Point_operators.hpp.
typedef int point_expression_op< orig, exp1, exp2, POINT_DIV >::has_init |
indicate that init must be called before value
Definition at line 788 of file Point_operators.hpp.
typedef int point_expression_op< orig, exp1, exp2, POINT_DIV >::is_expression |
indicate that this class encapsulate an expression
Definition at line 785 of file Point_operators.hpp.
typedef orig point_expression_op< orig, exp1, exp2, POINT_DIV >::orig_type |
original type
Definition at line 782 of file Point_operators.hpp.
typedef orig point_expression_op< orig, exp1, exp2, POINT_DIV >::return_type |
return type of the expression
Definition at line 791 of file Point_operators.hpp.
|
inline |
constructor from expression 1 and expression 2
o1 | expression 1 |
o2 | expression 2 |
Definition at line 802 of file Point_operators.hpp.
|
inline |
This function must be called before value.
it calculate the scalar product before return the values
Definition at line 811 of file Point_operators.hpp.
|
inline |
conversion of the class to double or float or ...
Definition at line 836 of file Point_operators.hpp.
|
inline |
Evaluate the expression.
k | where to evaluate the expression |
Definition at line 826 of file Point_operators.hpp.
|
static |
this operation produce a vector as result of size dims
Definition at line 794 of file Point_operators.hpp.
|
private |
expression 1
Definition at line 771 of file Point_operators.hpp.
|
private |
expression 2
Definition at line 773 of file Point_operators.hpp.