TP-openmp/BE_OpenMP_2022/sparse_nn/aux.h
2023-06-22 20:19:48 +02:00

23 lines
389 B
C

struct {
int i, j;
double sv;
} typedef synapse;
struct {
double nv;
} typedef neuron;
struct {
int m;
synapse *syn;
neuron *neu;
} typedef layer;
void init(layer *layers, int n, int L);
double update(double nin, double v);
void copy_nn(layer *layers_in, layer *layers_out, int n, int L);
long usecs ();
void check_result(layer *layers_s, layer *layers_p, int n, int L);