mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
A variety of small updates
1. Add answers to a number of FAQs. 2. Add a note to the documentation for NumericDiffCostFunction that NumericDiffOptions needs to be documented and mentioned. 3. Update the docs for Solver::Options::numeric_derivative_relative_step_size to indicate that this setting only applies to the gradient checker. 4. Remove deprecated constructors from NumericDiffCostFunction and DynamicNumericDiffCostFunction. Change-Id: If8fc011b2a5996dbc2c51268aa477550ed014a1c
This commit is contained in:
@@ -85,22 +85,6 @@ class DynamicNumericDiffCostFunction : public CostFunction {
|
||||
options_(options) {
|
||||
}
|
||||
|
||||
// Deprecated. New users should avoid using this constructor. Instead, use the
|
||||
// constructor with NumericDiffOptions.
|
||||
DynamicNumericDiffCostFunction(
|
||||
const CostFunctor* functor,
|
||||
Ownership ownership,
|
||||
double relative_step_size)
|
||||
: functor_(functor),
|
||||
ownership_(ownership),
|
||||
options_() {
|
||||
LOG(WARNING) << "This constructor is deprecated and will be removed in "
|
||||
"a future version. Please use the NumericDiffOptions "
|
||||
"constructor instead.";
|
||||
|
||||
options_.relative_step_size = relative_step_size;
|
||||
}
|
||||
|
||||
virtual ~DynamicNumericDiffCostFunction() {
|
||||
if (ownership_ != TAKE_OWNERSHIP) {
|
||||
functor_.release();
|
||||
|
||||
Reference in New Issue
Block a user