mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Use int32 for parameter block sizes.
CostFunction now uses int32 instead of int16 to store the size of its parameter blocks. This is an API breaking change. Change-Id: I032ea583bc7ea4b3009be25d23a3be143749c73e
This commit is contained in:
@@ -104,7 +104,7 @@ class DynamicNumericDiffCostFunction : public CostFunction {
|
||||
<< "You must call DynamicNumericDiffCostFunction::SetNumResiduals() "
|
||||
<< "before DynamicNumericDiffCostFunction::Evaluate().";
|
||||
|
||||
const vector<int16>& block_sizes = parameter_block_sizes();
|
||||
const vector<int32>& block_sizes = parameter_block_sizes();
|
||||
CHECK(!block_sizes.empty())
|
||||
<< "You must call DynamicNumericDiffCostFunction::AddParameterBlock() "
|
||||
<< "before DynamicNumericDiffCostFunction::Evaluate().";
|
||||
|
||||
Reference in New Issue
Block a user