A proxy for scalar expressions (e.g. from inner vector products) More...
#include <forwards.h>
Public Types | |
typedef viennacl::result_of::cpu_value_type < DummyType >::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... | |
A proxy for scalar expressions (e.g. from inner vector products)
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 230 of file forwards.h.
typedef viennacl::result_of::cpu_value_type<DummyType>::type viennacl::scalar_expression< LHS, RHS, OP >::ScalarType |
Definition at line 51 of file scalar.hpp.
|
inline |
Definition at line 53 of file scalar.hpp.
|
inline |
Returns the left hand side operand.
Definition at line 56 of file scalar.hpp.
|
inline |
Conversion operator to a ViennaCL scalar.
Definition at line 61 of file scalar.hpp.
|
inline |
Returns the left hand side operand.
Definition at line 58 of file scalar.hpp.