Add Problem::IsParameterBlockPresent.
This allows the user to query the Problem to see if a
parameter block is already present or not.
Change-Id: If786f6c008cc644f3398597901d718d12a6d865d
diff --git a/include/ceres/problem.h b/include/ceres/problem.h
index bed792a..b8759eb 100644
--- a/include/ceres/problem.h
+++ b/include/ceres/problem.h
@@ -349,6 +349,9 @@
// block, then ParameterBlockLocalSize = ParameterBlockSize.
int ParameterBlockLocalSize(const double* values) const;
+ // Is the given parameter block present in this problem or not?
+ bool HasParameterBlock(const double* values) const;
+
// Fills the passed parameter_blocks vector with pointers to the
// parameter blocks currently in the problem. After this call,
// parameter_block.size() == NumParameterBlocks.