Sum operation. More...
Sum operation.
| orig | original type |
| exp1 | expression1 |
| exp2 | expression2 |
Definition at line 238 of file Point_operators.hpp.
#include <Point_operators.hpp>
Public Types | |
| typedef orig | orig_type |
| original type of the point expression | |
| typedef int | is_expression |
| indicate that this class encapsulate an expression | |
| typedef int | has_init |
| indicate that init must be called before value | |
|
typedef r_type_p< r_type_dim < exp1::nvals, exp2::nvals, POINT_SUM >::value, orig > ::type | return_type |
| return type of the expression | |
Public Member Functions | |
| point_expression_op (const exp1 &o1, const exp2 &o2) | |
| Constructor from 2 point expressions. More... | |
| void | init () const |
| This function must be called before value. More... | |
| template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type> | |
| r_type | value (size_t k) const |
| Evaluate the expression at coordinate k. More... | |
| template<typename T , typename test = typename boost::disable_if_c< std::is_same<T,orig>::value || exp1::nvals != 1 || exp2::nvals != 1 >::type> | |
| operator T () const | |
| conversion of the class to double or float or ... More... | |
Static Public Attributes | |
| static const unsigned int | nvals = r_type_dim<exp1::nvals,exp2::nvals,POINT_SUM>::value |
| this operation produce a vector as result of size dims | |
Private Attributes | |
| const exp1 | o1 |
| first expression | |
| const exp2 | o2 |
| second expression | |
|
inline |
Constructor from 2 point expressions.
| o1 | expression1 |
| o2 | expression2 |
Definition at line 268 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 277 of file Point_operators.hpp.
|
inline |
conversion of the class to double or float or ...
Definition at line 299 of file Point_operators.hpp.
|
inline |
Evaluate the expression at coordinate k.
| k | coordinate |
Definition at line 290 of file Point_operators.hpp.