25 #ifndef UQ_MISCELLANEOUS_H
26 #define UQ_MISCELLANEOUS_H
28 #include <queso/Environment.h>
29 #include <queso/RngBase.h>
37 std::vector<double>& outputDoubles);
39 std::vector<std::string>& outputWords);
41 void MiscExtractDoubleFromString (std::string& inputString,
42 double& outputDouble);
43 void MiscExtractWordFromString (std::string& inputString,
44 std::string& outputWord);
47 std::string& termString,
50 std::string& termString,
52 bool& endOfLineAchieved);
55 const RngBase* rngObject);
74 double acceptableTreshold,
const MpiComm& comm,
const char * whereString);
78 std::vector<V*>& positions);
80 template <
class V1,
class V2>
85 #endif // UQ_MISCELLANEOUS_H
double MiscGaussianDensity(double x, double mu, double sigma)
int MiscIntDebugMessage(int value, const char *message)
int GRVY_CheckDir(const char *dirname)
double MiscHammingWindow(unsigned int N, unsigned int j)
void MiscComputePositionsBetweenMinMax(V minValues, V maxValues, std::vector< V * > &positions)
double MiscDoubleDebugMessage(double value, const char *message)
void MiscCheckTheParallelEnvironment(const V1 &vec1, const V2 &vec2)
double MiscGammar(double a, double b, const RngBase *rngObject)
double MiscGetEllapsedSeconds(struct timeval *timeval0)
unsigned int MiscUintDebugMessage(unsigned int value, const char *message)
int CheckFilePath(const char *path)
int MiscReadCharsAndDoubleFromFile(std::ifstream &ifs, std::string &termString, double *termValue, bool &endOfLineAchieved)
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
int MiscReadStringAndDoubleFromFile(std::ifstream &ifs, std::string &termString, double *termValue)
void MiscReadWordsFromString(const std::string &inputString, std::vector< std::string > &outputWords)
bool MiscCheckForSameValueInAllNodes(T &inputValue, double acceptableTreshold, const MpiComm &comm, const char *whereString)