Fix non defined variable in initialisation.c

This commit is contained in:
julienChemillier 2023-02-17 18:13:59 +01:00
parent 3f9114c245
commit 866e2f9a16

View File

@ -12,7 +12,7 @@
void initialisation_1d_matrix(int initialisation, float* matrix, int dim, int n_in) {
int n;
if (initialisation == GLOROT) {
n = (n_in + n)/2;
n = (n_in + dim)/2;
} else if (initialisation == HE) {
n = n_in/2;