10#ifndef TEUCHOS_SET_SCIENTIFIC_HPP 
   11#define TEUCHOS_SET_SCIENTIFIC_HPP 
   40template<typename Scalar, const bool isFloatingPoint = ! Teuchos::ScalarTraits<Scalar>::isOrdinal>
 
   49template<
typename Scalar>
 
   52  typedef Scalar scalar_type;
 
   56    originalFlags_(out.
flags()),
 
   57    originalPrecision_(out.precision())
 
   60    out << std::scientific;
 
   66    out.precision(
static_cast<std::streamsize
>(prec));
 
   69  static inline int getDefaultPrecision() {
 
  104    out_.flags (originalFlags_);
 
  112   std::ios_base::fmtflags originalFlags_;
 
  115   std::streamsize originalPrecision_;
 
  119template<
class Scalar>
 
  122  typedef Scalar scalar_type;
 
 
Defines basic traits for the scalar field type.
 
Definition of Teuchos::as, for conversions between types.
 
Smart reference counting pointer class for automatic garbage collection.
 
Temporarily make an output stream use scientific notation with sufficient precision.
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...