mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Remove trailing zero parameter block sizes
This patch removes the use of trailing zeros in cost functions used in unit tests as this will be an error once the sized cost function is implemented using variadic templates. Change-Id: I3e8a31b310ba7299fc6b1f012f540a3118cc7661
This commit is contained in:
@@ -51,8 +51,8 @@ using std::vector;
|
||||
typedef Graph<ParameterBlock*> HessianGraph;
|
||||
typedef std::unordered_set<ParameterBlock*> VertexSet;
|
||||
|
||||
template <int M, int N1 = 0, int N2 = 0, int N3 = 0>
|
||||
class DummyCostFunction: public SizedCostFunction<M, N1, N2, N3> {
|
||||
template <int M, int... Ns>
|
||||
class DummyCostFunction : public SizedCostFunction<M, Ns...> {
|
||||
virtual bool Evaluate(double const* const* parameters,
|
||||
double* residuals,
|
||||
double** jacobians) const {
|
||||
|
||||
Reference in New Issue
Block a user