10 #ifndef TEUCHOS_UTILS_H
11 #define TEUCHOS_UTILS_H
33 static double chop(
const double& x);
41 static void setChopVal(
double chopVal) {chopVal_ = chopVal;}
45 {
return ( c==
' ' || c ==
'\t' || c==
'\n' ); }
48 static std::string trimWhiteSpace(
const std::string& str );
51 static std::string
toString(
const double& x);
54 static std::string
toString(
const int& x);
57 static std::string
toString(
const long long& x);
60 static std::string
toString(
const unsigned int& x);
64 static double pi() {
return M_PI;}
66 static double pi() {
return 3.14159265358979323846;}
70 static std::string getParallelExtension(
static bool isWhiteSpace(const char c)
Determine if a char is whitespace or not.
static void setChopVal(double chopVal)
Set the chopping value, below which numbers are considered to be zero.
#define TEUCHOSCORE_LIB_DLL_EXPORT
static double getChopVal()
Get the chopping value, below which numbers are considered to be zero.
std::string toString(const HashSet< Key > &h)
This class provides some basic std::string and floating-point utilities for Teuchos.