mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Let NumericDiffFirstOrderFunction take a dynamically sized parameter vector
Also fix a template naming lint along the way. Change-Id: Iabb98aeec2ff9609a19c3778b9ea2da37771c985
This commit is contained in:
committed by
Sameer Agarwal
parent
6c27ac6d50
commit
4cd257cf4a
@@ -176,7 +176,7 @@
|
||||
namespace ceres {
|
||||
|
||||
template <typename CostFunctor,
|
||||
NumericDiffMethodType method = CENTRAL,
|
||||
NumericDiffMethodType kMethod = CENTRAL,
|
||||
int kNumResiduals = 0, // Number of residuals, or ceres::DYNAMIC
|
||||
int... Ns> // Parameters dimensions for each block.
|
||||
class NumericDiffCostFunction final
|
||||
@@ -236,7 +236,7 @@ class NumericDiffCostFunction final
|
||||
}
|
||||
|
||||
internal::EvaluateJacobianForParameterBlocks<ParameterDims>::
|
||||
template Apply<method, kNumResiduals>(
|
||||
template Apply<kMethod, kNumResiduals>(
|
||||
functor_.get(),
|
||||
residuals,
|
||||
options_,
|
||||
|
||||
Reference in New Issue
Block a user