mirror of
https://github.com/codeplea/genann.git
synced 2026-09-17 06:23:43 +00:00
Make the sigmoid lookup table internal to genann.c
This commit is contained in:
8
genann.c
8
genann.c
@@ -38,10 +38,10 @@
|
||||
/* Bounds the size calculations in genann_init so they cannot overflow. */
|
||||
#define GENANN_MAX_DIMENSION (1 << 20)
|
||||
|
||||
const double sigmoid_dom_min = -15.0;
|
||||
const double sigmoid_dom_max = 15.0;
|
||||
double interval;
|
||||
double lookup[LOOKUP_SIZE];
|
||||
static const double sigmoid_dom_min = -15.0;
|
||||
static const double sigmoid_dom_max = 15.0;
|
||||
static double interval;
|
||||
static double lookup[LOOKUP_SIZE];
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
|
||||
Reference in New Issue
Block a user