Tpetra Matrix/Vector Services Version of the Day
Politely make an output stream use scientific notation. More...
|SetScientific (std::ostream &out)|
Politely make an output stream use scientific notation.
On construction, apply the necessary flags to the given output stream so that floating-point numbers are written in scientific notation with precision appropriate for the Scalar type. On destruction, restore the original (pre-construction) flags to the output stream. This makes SetScientific good for scope-protected alteration of the output stream's flags; no matter how the scope exits (normally or by a thrown exception), the original flags will be restored. Hence, "polite": we restore the original flags on scope exit.
|Scalar||A floating-point type, either real or complex, for which Teuchos::ScalarTraits<Scalar> has a specialization. Currently we also require that std::log10() take arguments of type Scalar, but this may be relaxed in the future if Teuchos::ScalarTraits gets its own log10() class method.|
|Tpetra::MatrixMarket::details::SetScientific< Scalar >::SetScientific||(||std::ostream &||out||)||
|Tpetra::MatrixMarket::details::SetScientific< Scalar >::~SetScientific||(||)||