Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Public Member Functions
TSQR::ScalarPrinter< Scalar, isComplex > Class Template Reference

Print a Scalar value to the given output stream. More...

#include <Tsqr_Util.hpp>

List of all members.

Public Member Functions

void operator() (std::ostream &out, const Scalar &elt) const

Detailed Description

template<class Scalar, bool isComplex>
class TSQR::ScalarPrinter< Scalar, isComplex >

Print a Scalar value to the given output stream.

Template Parameters:
ScalarThe type of the value to print.
isComplexWhether Scalar represents a complex number type (such as std::complex<T>).

C++ (before C++0x) doesn't let me do partial template specialization of functions. Because of that, I can't use a template function; instead, I have to reify the function into a class ("function object"). This is typical Java style, where everything is a noun with a "run()" method; not my favorite, but it's the only way to do it.

Definition at line 73 of file Tsqr_Util.hpp.


Member Function Documentation

template<class Scalar , bool isComplex>
void TSQR::ScalarPrinter< Scalar, isComplex >::operator() ( std::ostream &  out,
const Scalar &  elt 
) const

Print elt to out


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends