Differences From Artifact [681ea58964]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [f222810d22] at 2003-09-13 22:26:39 on branch origin/master — Use std::pow instead of pow to avoid pow double/Complex ambiguity error. (user: geraint@users.sourceforge.net, size: 1865) [annotate] [blame] [check-ins using] [more...]
To Artifact [a82d5274ea]:
- Executable file
mttroot/mtt/cc/include/useful-functions.hh
— part of check-in
[b36bb9b4a5]
at
2003-09-14 23:05:47
on branch origin/master
— Made pi a constant recognised by MTT for -cc and -oct.
Required by NonlinearMSD example.
Will cause problems for models which declare pi as a parameter. (user: geraint@users.sourceforge.net, size: 1943) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | const bool true = 1; const bool false = 0; */ #else #define cast_to_double static_cast<double> using std::pow; #endif /* ! __cplusplus */ static inline double max (const double x1, const double x2) { return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0); } | > > > > > > | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | const bool true = 1; const bool false = 0; */ #else #define cast_to_double static_cast<double> using std::pow; #endif /* ! __cplusplus */ static double pi = M_PI; static double Pi = M_PI; static double PI = M_PI; static inline double max (const double x1, const double x2) { return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0); } |
︙ | ︙ |