diff options
Diffstat (limited to 'test/regression.cpp')
-rw-r--r-- | test/regression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regression.cpp b/test/regression.cpp index 0e2323bf6..6fad26bad 100644 --- a/test/regression.cpp +++ b/test/regression.cpp @@ -51,7 +51,7 @@ void makeNoisyCohyperplanarPoints(int numPoints, { cur_point = VectorType::Random(size)/*.normalized()*/; // project cur_point onto the hyperplane - Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum(); + Scalar x = - (hyperplane->coeffs().head(size).cwise()*cur_point).sum(); cur_point *= hyperplane->coeffs().coeff(size) / x; } while( cur_point.norm() < 0.5 || cur_point.norm() > 2.0 ); |