Specialization of a scalar expression for inner products. Allows for a final reduction on the CPU. More...
#include <scalar.hpp>
Public Types | |
typedef viennacl::result_of::cpu_value_type < LHS >::type | ScalarType |
Public Member Functions | |
scalar_expression (LHS &lhs, RHS &rhs) | |
LHS & | lhs () const |
Returns the left hand side operand. More... | |
RHS & | rhs () const |
Returns the left hand side operand. More... | |
operator ScalarType () const | |
Conversion operator to a ViennaCL scalar. More... | |
Specialization of a scalar expression for inner products. Allows for a final reduction on the CPU.
assumption: dim(LHS) >= dim(RHS), where dim(scalar) = 0, dim(vector) = 1 and dim(matrix = 2)
LHS | The left hand side operand |
RHS | The right hand side operand |
OP | The operation tag |
Definition at line 82 of file scalar.hpp.
typedef viennacl::result_of::cpu_value_type<LHS>::type viennacl::scalar_expression< LHS, RHS, op_inner_prod >::ScalarType |
Definition at line 86 of file scalar.hpp.
|
inline |
Definition at line 88 of file scalar.hpp.
|
inline |
Returns the left hand side operand.
Definition at line 91 of file scalar.hpp.
|
inline |
Conversion operator to a ViennaCL scalar.
Definition at line 96 of file scalar.hpp.
|
inline |
Returns the left hand side operand.
Definition at line 93 of file scalar.hpp.