Data Structures | Namespaces | Functions

/data/development/ViennaCL/dev/viennacl/scalar.hpp File Reference

Implementation of the ViennaCL scalar class. More...

#include "viennacl/forwards.h"
#include "viennacl/ocl/backend.hpp"
#include "viennacl/linalg/kernels/scalar_kernels.h"
#include <iostream>

Go to the source code of this file.

Data Structures

class  scalar_expression< LHS, RHS, OP >
 A proxy for scalar expressions (e.g. from inner vector products). More...
class  scalar< TYPE >
 This class represents a single scalar value on the GPU and behaves mostly like a built-in scalar type like float or double. More...

Namespaces

namespace  viennacl

Functions

template<class SCALARTYPE >
std::ostream & operator<< (std::ostream &s, const scalar< SCALARTYPE > &val)
 Allows to directly print the value of a scalar to an output stream.
template<class SCALARTYPE >
std::istream & operator>> (std::istream &s, const scalar< SCALARTYPE > &val)
 Allows to directly read a value of a scalar from an input stream.

Detailed Description

Implementation of the ViennaCL scalar class.