CARLsim  6.1.0
CARLsim: a GPU-accelerated SNN simulator
Util.h
Go to the documentation of this file.
1 #ifndef UTIL_H
2 #define UTIL_H
3 
4 #include <string>
5 
6 using namespace std;
7 
8 float stringToFloat(const string &str);
9 double stringToDouble(const string &str);
10 bool equals(float x, float y, float epsilon = 0.000001);
11 bool equals(double x, double y, double epsilon = 0.000001);
12 
13 #endif // UTIL_H
bool equals(float x, float y, float epsilon=0.000001)
Definition: Util.cpp:42
double stringToDouble(const string &str)
Definition: Util.cpp:30
float stringToFloat(const string &str)
Definition: Util.cpp:14