mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Add Solver::Options::IsValid.
This provides a user visible way to validate the Solver::Options before calling Solve. Change-Id: Ife84fd33532ab2ccb7ac95abe22735843db51fde
This commit is contained in:
@@ -791,9 +791,14 @@ elimination group [LiSaad]_.
|
||||
|
||||
.. class:: Solver::Options
|
||||
|
||||
:class:`Solver::Options` controls the overall behavior of the
|
||||
solver. We list the various settings and their default values below.
|
||||
:class:`Solver::Options` controls the overall behavior of the
|
||||
solver. We list the various settings and their default values below.
|
||||
|
||||
.. function:: bool Solver::Options::IsValid(string* error) const
|
||||
|
||||
Validate the values in the options struct and returns true on
|
||||
success. If there is a problem, the method returns false with
|
||||
``error`` containing a textual description of the cause.
|
||||
|
||||
.. member:: MinimizerType Solver::Options::minimizer_type
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ Releases
|
||||
HEAD
|
||||
====
|
||||
|
||||
#. Added ``Solver::Options::IsValid`` which allows users to validate
|
||||
their solver configuration before calling ``Solve``.
|
||||
|
||||
Backward Incompatible API Changes
|
||||
---------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user