ext/lbfgsb/lbfgsbext.c in lbfgsb-0.2.0 vs ext/lbfgsb/lbfgsbext.c in lbfgsb-0.3.0
- old
+ new
@@ -107,9 +107,10 @@
nbd_ptr = (long*)na_get_pointer_for_read(nbd_val);
g = ALLOC_N(double, n);
wa = ALLOC_N(double, (2 * m + 5) * n + 12 * m * m + 12 * m);
iwa = ALLOC_N(long, 3 * n);
+ g_val = Qnil;
f = 0.0;
for (i = 0; i < n; g[i++] = 0.0);
strcpy(task, "START");
n_fev = 0;
n_jev = 0;