42 #ifndef TEUCHOS_UTILS_H
43 #define TEUCHOS_UTILS_H
65 static double chop(
const double& x);
73 static void setChopVal(
double chopVal) {chopVal_ = chopVal;}
77 {
return ( c==
' ' || c ==
'\t' || c==
'\n' ); }
80 static std::string trimWhiteSpace(
const std::string& str );
83 static std::string
toString(
const double& x);
86 static std::string
toString(
const int& x);
89 static std::string
toString(
const long long& x);
92 static std::string
toString(
const unsigned int& x);
96 static double pi() {
return M_PI;}
98 static double pi() {
return 3.14159265358979323846;}
102 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.