diff --git a/layer_multi b/layer_multi index e889faf..a95a7d5 100755 Binary files a/layer_multi and b/layer_multi differ diff --git a/layer_multi.c b/layer_multi.c index 543e53f..0bd1cb2 100644 --- a/layer_multi.c +++ b/layer_multi.c @@ -169,7 +169,7 @@ void main() // Prevengo la divisione per zero if(p_ext_1.w2 != 0 && p_ext_2.w2 != 0 && pout.w2 !=0) - { + { rette_p_ext_1[i].m = -(p_ext_1.w1 / p_ext_1.w2); rette_p_ext_1[i].q = -(p_ext_1.bias / p_ext_1.w2); rette_p_ext_2[i].m = -(p_ext_2.w1 / p_ext_2.w2); @@ -178,7 +178,7 @@ void main() /* rette_pout[i].m = -(pout.w1 * x[j][0]) / pout.w2; rette_pout[i].q = -(pout.bias / pout.w2); */ - rette_pout[i].m = -(pout.w1) / pout.w2; + rette_pout[i].m = -(pout.w1 / pout.w2); rette_pout[i].q = -(pout.bias / pout.w2); // somma delle rette (m1 + m2)x + (q1 + q2)