Fix a pointer access bug in Ridders' algorithm.

A pointer to an Eigen matrix was being used as an array.

Change-Id: Ifaea14fa3416eda5953de49afb78dc5a6ea816eb
This commit is contained in:
Sameer Agarwal
2015-09-05 13:18:38 -07:00
committed by Keir Mierle
parent 5742b7d0f1
commit 67622b080c
+1 -1
View File
@@ -346,7 +346,7 @@ struct NumericDiff {
// Store initial results.
if (i == 0) {
residuals = current_candidates[0];
residuals = current_candidates->col(0);
}
// Shrink differentiation step size.