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

Specialization of a scalar expression for norm_1. 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.
RHS & rhs () const
 Returns the left hand side operand.
 operator ScalarType () const
 Conversion operator to a ViennaCL scalar.

Detailed Description

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

Specialization of a scalar expression for norm_1. 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 ( void  ) 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: