22template <
typename ErrorFunctionType>
25 for (
const auto& f : functions) {
26 if (f->getWeight() <= 0) {
29 result += f->getJacobianSize();
38 std::vector<Eigen::Index> result;
40 for (
size_t iSubFrame = 0; iSubFrame < bandwidth; ++iSubFrame) {
44 std::back_inserter(result),
46 Eigen::Index kParam) -> Eigen::Index { return kParam + offset; });
81 :
SolverT<T>(options, function) {
Shared base class for sequence solvers.
SequenceSolverBaseT(const SolverOptions &options, SequenceSolverFunctionT< T > *function)
void setEnabledParameters(const ParameterSet ¶meters) final
Specifies which parameters should be optimized.
void setOptions(const SolverOptions &options) override
Updates solver configuration with new options.
const std::vector< Eigen::Index > & getPerFrameParameterIndices() const
const ParameterTransformT< T > * getParameterTransform() const
virtual void setOptions(const SolverOptions &options)
Updates solver configuration with new options.
SolverFunctionT< float > * solverFunction_
virtual void setEnabledParameters(const ParameterSet ¶meters)
Specifies which parameters should be optimized.
SolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Constructor with solver options and function to optimize.
size_t computeJacobianSize(const std::vector< std::shared_ptr< ErrorFunctionType > > &functions)
std::vector< Eigen::Index > buildSequenceColumnIndices(const SequenceSolverFunctionT< T > *fn, size_t bandwidth)
SequenceSolverBaseT< double > SequenceSolverBased
SequenceSolverBaseT< float > SequenceSolverBase
std::bitset< kMaxModelParams > ParameterSet
Bitset for model parameter enablement.
Shared options for sequence solvers.
bool progressBar
Flag to enable a progress bar during optimization.
bool doLineSearch
Flag to enable line search during optimization.
SequenceSolverOptionsBase(const SolverOptions &baseOptions)
float regularization
Regularization parameter used by the linearized sequence solve.
SequenceSolverOptionsBase()=default
bool multithreaded
Flag to enable multithreaded sequence processing.
Common options for numerical optimization solvers.