mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
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:
committed by
Keir Mierle
parent
5742b7d0f1
commit
67622b080c
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user