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);
42 double& outputDouble);
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
int MiscReadStringAndDoubleFromFile(std::ifstream &ifs, std::string &termString, double *termValue)
int GRVY_CheckDir(const char *dirname)
double MiscHammingWindow(unsigned int N, unsigned int j)
double MiscGammar(double a, double b, const RngBase *rngObject)
void MiscExtractWordFromString(std::string &inputString, std::string &outputWord)
double MiscDoubleDebugMessage(double value, const char *message)
int CheckFilePath(const char *path)
double MiscGaussianDensity(double x, double mu, double sigma)
int MiscIntDebugMessage(int value, const char *message)
unsigned int MiscUintDebugMessage(unsigned int value, const char *message)
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
void MiscComputePositionsBetweenMinMax(V minValues, V maxValues, std::vector< V * > &positions)
bool MiscCheckForSameValueInAllNodes(T &inputValue, double acceptableTreshold, const MpiComm &comm, const char *whereString)
void MiscExtractDoubleFromString(std::string &inputString, double &outputDouble)
int MiscReadCharsAndDoubleFromFile(std::ifstream &ifs, std::string &termString, double *termValue, bool &endOfLineAchieved)
void MiscReadWordsFromString(const std::string &inputString, std::vector< std::string > &outputWords)
double MiscGetEllapsedSeconds(struct timeval *timeval0)
void MiscCheckTheParallelEnvironment(const V1 &vec1, const V2 &vec2)