Multiplication operation. More...
Multiplication operation.
exp1 | expression1 |
exp2 | expression2 |
Definition at line 508 of file vector_dist_operators.hpp.
#include <vector_dist_operators.hpp>
Public Types | |
typedef first_or_second< has_vtype< exp1 >::value, exp1, exp2 >::vtype | vtype |
The type of the internal vector. | |
typedef exp1::is_ker | is_ker |
typedef vector_is_sort_result< exp1::is_sort::value, exp2::is_sort::value >::type | is_sort |
result for is sort | |
typedef nn_type_result< typenameexp1::NN_type, typenameexp2::NN_type >::type | NN_type |
NN_type. | |
Public Member Functions | |
vector_dist_expression_op (const exp1 &o1, const exp2 &o2) | |
constructor from two expressions | |
void | init () const |
This function must be called before value. | |
template<typename r_type = typename std::remove_reference<decltype(o1.value(vect_dist_key_dx()) * o2.value(vect_dist_key_dx()))>::type> | |
__device__ __host__ r_type | value (const vect_dist_key_dx &key) const |
Evaluate the expression. | |
template<typename Sys_eqs , typename pmap_type , typename unordered_map_type , typename coeff_type > | |
void | value_nz (pmap_type &p_map, const vect_dist_key_dx &key, unordered_map_type &cols, coeff_type &coeff, unsigned int comp) const |
const vtype & | getVector () |
Return the vector on which is acting. | |
const vtype & | getVector () const |
Return the vector on which is acting. | |
template<typename r_type = typename std::remove_reference<decltype(o1.value(vect_dist_key_dx()) * o2.value(vect_dist_key_dx()))>::type> | |
__device__ __host__ r_type | value (const unsigned int &key) const |
Evaluate the expression. | |
Private Attributes | |
const exp1 | o1 |
expression 1 | |
const exp2 | o2 |
expression 2 | |
typedef exp1::is_ker vector_dist_expression_op< exp1, exp2, VECT_MUL >::is_ker |
Definition at line 521 of file vector_dist_operators.hpp.
typedef vector_is_sort_result<exp1::is_sort::value,exp2::is_sort::value>::type vector_dist_expression_op< exp1, exp2, VECT_MUL >::is_sort |
result for is sort
Definition at line 524 of file vector_dist_operators.hpp.
typedef nn_type_result<typenameexp1::NN_type,typenameexp2::NN_type>::type vector_dist_expression_op< exp1, exp2, VECT_MUL >::NN_type |
NN_type.
Definition at line 527 of file vector_dist_operators.hpp.
typedef first_or_second<has_vtype<exp1>::value,exp1,exp2>::vtype vector_dist_expression_op< exp1, exp2, VECT_MUL >::vtype |
The type of the internal vector.
Definition at line 519 of file vector_dist_operators.hpp.
|
inline |
constructor from two expressions
Definition at line 530 of file vector_dist_operators.hpp.
|
inline |
Return the vector on which is acting.
It return the vector used in getVExpr, to get this object
Definition at line 573 of file vector_dist_operators.hpp.
|
inline |
Return the vector on which is acting.
It return the vector used in getVExpr, to get this object
Definition at line 585 of file vector_dist_operators.hpp.
|
inline |
This function must be called before value.
it initialize the expression if needed
Definition at line 539 of file vector_dist_operators.hpp.
|
inline |
Evaluate the expression.
key | where to evaluate the expression |
Definition at line 598 of file vector_dist_operators.hpp.
|
inline |
Evaluate the expression.
key | where to evaluate the expression |
Definition at line 553 of file vector_dist_operators.hpp.
|
inline |
Definition at line 559 of file vector_dist_operators.hpp.
|
private |
expression 1
Definition at line 511 of file vector_dist_operators.hpp.
|
private |
expression 2
Definition at line 514 of file vector_dist_operators.hpp.