mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add the ability to query the Problem about parameter blocks.
Change-Id: Ieda1aefa28e7a1d18fe6c8d1665882e4d9c274f2
This commit is contained in:
committed by
Gerrit Code Review
parent
69ebad42eb
commit
3d9546963d
@@ -206,4 +206,16 @@ int Problem::NumResiduals() const {
|
||||
return problem_impl_->NumResiduals();
|
||||
}
|
||||
|
||||
int Problem::ParameterBlockSize(double* parameter_block) const {
|
||||
return problem_impl_->ParameterBlockSize(parameter_block);
|
||||
};
|
||||
|
||||
int Problem::ParameterBlockLocalSize(double* parameter_block) const {
|
||||
return problem_impl_->ParameterBlockLocalSize(parameter_block);
|
||||
};
|
||||
|
||||
void Problem::GetParameterBlocks(vector<double*>* parameter_blocks) const {
|
||||
problem_impl_->GetParameterBlocks(parameter_blocks);
|
||||
}
|
||||
|
||||
} // namespace ceres
|
||||
|
||||
Reference in New Issue
Block a user