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

Specialization of a scalar expression for norm_2. 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...
 

Detailed Description

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

Specialization of a scalar expression for norm_2. Allows for a final reduction on the CPU.

Template Parameters
LHSThe left hand side operand
RHSThe right hand side operand

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 file: