Skip to content

Commit

Permalink
Merge branch 'sequencial_parameter'
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-michaud committed Jun 9, 2020
2 parents 817c2d1 + e0b329f commit 331c01e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#CC=icpc -static -O3
#CC=g++ -static #-O3
#CFLAGS= -O3 #-static
CFLAGS = -std=c++11
#CFLAGS_DB="" #-static
CC=g++ # for mac os x

Expand Down
16 changes: 16 additions & 0 deletions include/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@
#include <algorithm>
using namespace std;

#ifndef M_E
#define M_E 2.71828182845904523536028747135266250 /* e */
#define M_LOG2E 1.44269504088896340735992468100189214 /* log2(e) */
#define M_LOG10E 0.434294481903251827651128918916605082 /* log10(e) */
#define M_LN2 0.693147180559945309417232121458176568 /* loge(2) */
#define M_LN10 2.30258509299404568401799145468436421 /* loge(10) */
#define M_PI 3.14159265358979323846264338327950288 /* pi */
#define M_PI_2 1.57079632679489661923132169163975144 /* pi/2 */
#define M_PI_4 0.785398163397448309615660845819875721 /* pi/4 */
#define M_1_PI 0.318309886183790671537767526745028724 /* 1/pi */
#define M_2_PI 0.636619772367581343075535053490057448 /* 2/pi */
#define M_2_SQRTPI 1.12837916709551257389615890312154517 /* 2/sqrt(pi) */
#define M_SQRT2 1.41421356237309504880168872420969808 /* sqrt(2) */
#define M_SQRT1_2 0.707106781186547524400844362104849039 /* 1/sqrt(2) */
#endif

/**Random number generation class, uses various types of random generation depending on the implementation.*/
class RAND: public MTRand {
public:
Expand Down
4 changes: 0 additions & 4 deletions include/tmetapop.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@

#include "patch.h"

#ifdef _RANDOM_C11
#include "randomC11.h"
#else
#include "random.h"
#endif

class LCE;
class LCE_Breed;
Expand Down

0 comments on commit 331c01e

Please sign in to comment.