Teuchos::Utils Class Reference

This class provides some basic string and floating-point utilities for Teuchos. More...

#include <Teuchos_Utils.hpp>

List of all members.

Static Public Member Functions

void aboutBuild ()
 print a description of the current build
double chop (const double &x)
 Set a number to zero if it is less than chopVal.
string toString (const double &x)
string toString (const int &x)
double infinity ()
 IEEE positive infinity.
double negativeInfinity ()
 IEEE negative infinity.
double pi ()
 pi.
double getChopVal ()
 Get the chopping value, below which numbers are considered to be zero.
void setChopVal (double chopVal)
 Set the chopping value, below which numbers are considered to be zero.

Static Private Attributes

double chopVal_ = 1.0e-16

Related Functions

(Note that these are not member functions.)

string toString (const string &x)


Detailed Description

This class provides some basic string and floating-point utilities for Teuchos.

Definition at line 46 of file Teuchos_Utils.hpp.


Member Function Documentation

void Teuchos::Utils::aboutBuild  )  [static]
 

print a description of the current build

double Teuchos::Utils::chop const double &  x  )  [static]
 

Set a number to zero if it is less than chopVal.

Definition at line 35 of file Teuchos_Utils.cpp.

string toString const double &  x  )  [inline, static]
 

Definition at line 48 of file Teuchos_Utils.cpp.

string toString const int &  x  )  [inline, static]
 

Definition at line 41 of file Teuchos_Utils.cpp.

double Teuchos::Utils::infinity  )  [inline, static]
 

IEEE positive infinity.

Definition at line 72 of file Teuchos_Utils.hpp.

double Teuchos::Utils::negativeInfinity  )  [inline, static]
 

IEEE negative infinity.

Definition at line 77 of file Teuchos_Utils.hpp.

double Teuchos::Utils::pi  )  [inline, static]
 

pi.

Definition at line 85 of file Teuchos_Utils.hpp.

double Teuchos::Utils::getChopVal  )  [inline, static]
 

Get the chopping value, below which numbers are considered to be zero.

Definition at line 90 of file Teuchos_Utils.hpp.

void Teuchos::Utils::setChopVal double  chopVal  )  [inline, static]
 

Set the chopping value, below which numbers are considered to be zero.

Definition at line 94 of file Teuchos_Utils.hpp.


Friends And Related Function Documentation

string toString const string &  x  )  [related]
 

Definition at line 107 of file Teuchos_Utils.hpp.


Member Data Documentation

double Teuchos::Utils::chopVal_ = 1.0e-16 [static, private]
 

Definition at line 33 of file Teuchos_Utils.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:41:21 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1