[Lme4-commits] r1666 - pkg/lme4/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Mar 16 18:33:16 CET 2012
Author: dmbates
Date: 2012-03-16 18:33:16 +0100 (Fri, 16 Mar 2012)
New Revision: 1666
Modified:
pkg/lme4/src/optimizer.cpp
Log:
Initialize d_vals array to minimum double-precision value.
Modified: pkg/lme4/src/optimizer.cpp
===================================================================
--- pkg/lme4/src/optimizer.cpp 2012-03-16 14:04:51 UTC (rev 1665)
+++ pkg/lme4/src/optimizer.cpp 2012-03-16 17:33:16 UTC (rev 1666)
@@ -65,6 +65,7 @@
throw std::invalid_argument("initial x is not a feasible point");
d_stop.resetEvals();
init_pos = 0;
+ for (int i = 0; i <= d_n; ++i) d_vals[i] = std::numeric_limits<double>::min();
d_pts = d_x.replicate(1, d_n + 1);
for (Index i = 0; i < d_n; ++i) { // generate and check the initial positions
Index j(i + 1);
More information about the Lme4-commits
mailing list