ViennaCL - The Vienna Computing Library  1.2.0
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 <scalar.hpp>

Public Types

typedef DummyType::value_type ScalarType

Public Member Functions

 scalar_expression (LHS &lhs, RHS &rhs)
LHS & get_lhs () const
 Returns the left hand side operand.
RHS & get_rhs () const
 Returns the left hand side operand.
 operator ScalarType () const
 Conversion operator to a ViennaCL scalar.

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

typedef DummyType::value_type ScalarType

Constructor & Destructor Documentation

scalar_expression ( LHS &  lhs,
RHS &  rhs 
)
inline

Member Function Documentation

LHS& get_lhs ( ) const
inline

Returns the left hand side operand.

RHS& get_rhs ( ) const
inline

Returns the left hand side operand.

operator ScalarType ( ) const
inline

Conversion operator to a ViennaCL scalar.


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