Use ParameterBlock::IsConstant in BlockJacobianWriter::CreateJacobian Replace the check residual_block->parameter_blocks()[j]->index() != -1 with !residual_block->parameter_blocks()[j]->IsConstant() to match the loop immediately below it. Thanks to @jwmak for reporting this. Fixes https://github.com/ceres-solver/ceres-solver/issues/971 Change-Id: Ic2d900e04c42b3c680655a3fdfd39f7e540d2349
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.