Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Print a Scalar value to the given output stream. More...
|void||operator() (std::ostream &out, const Scalar &elt) const|
Print a Scalar value to the given output stream.
|Scalar||The type of the value to print.|
|isComplex||Whether 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.
|void TSQR::ScalarPrinter< Scalar, isComplex >::operator()||(||std::ostream &||out,|
|const Scalar &||elt|
Print elt to out