search for: 053b23b

Displaying 1 result from an estimated 1 matches for "053b23b".

Did you mean: 05323
2015 Aug 07
0
[PATCH] Fix const struct to work with C++ compilation
...c/analysis.c b/src/analysis.c index 2ee8533..401a43e 100644 --- a/src/analysis.c +++ b/src/analysis.c @@ -39,8 +39,6 @@ #include "mlp.h" #include "stack_alloc.h" -extern const MLP net; - #ifndef M_PI #define M_PI 3.141592653 #endif diff --git a/src/mlp.h b/src/mlp.h index 053b23b..618e246 100644 --- a/src/mlp.h +++ b/src/mlp.h @@ -36,6 +36,8 @@ typedef struct { const float *weights; } MLP; +extern const MLP net; + void mlp_process(const MLP *m, const float *in, float *out); #endif /* _MLP_H_ */ -- 2.4.5