ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions
scalar_expression< LHS, RHS, OP > Class Template Reference

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...
 

Detailed Description

template<typename LHS, typename RHS, typename OP>
class viennacl::scalar_expression< LHS, RHS, OP >

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)

Template Parameters
LHSThe left hand side operand
RHSThe right hand side operand
OPThe operation tag

Member Typedef Documentation

Constructor & Destructor Documentation

scalar_expression ( LHS &  lhs,
RHS &  rhs 
)
inline

Member Function Documentation

LHS& lhs ( ) const
inline

Returns the left hand side operand.

operator ScalarType ( ) const
inline

Conversion operator to a ViennaCL scalar.

RHS& rhs ( ) const
inline

Returns the left hand side operand.


The documentation for this class was generated from the following files: