From e09e24964a7fea2dba7ecf8b8f31a5ebcad875d1 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sat, 11 Oct 2014 09:00:03 +0200 Subject: [PATCH] No need to have all of T as template parameter --- gtsam_unstable/nonlinear/Expression-inl.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gtsam_unstable/nonlinear/Expression-inl.h b/gtsam_unstable/nonlinear/Expression-inl.h index 4f5d2a1c6..7e21db45e 100644 --- a/gtsam_unstable/nonlinear/Expression-inl.h +++ b/gtsam_unstable/nonlinear/Expression-inl.h @@ -41,7 +41,7 @@ typedef std::map JacobianMap; * * It is sub-classed in the function-style ExpressionNode sub-classes below. */ -template +template struct CallRecord { /// Make sure destructor is virtual @@ -49,7 +49,7 @@ struct CallRecord { } virtual void startReverseAD(JacobianMap& jacobians) const = 0; virtual void reverseAD(const Matrix& dFdT, JacobianMap& jacobians) const = 0; - typedef Eigen::Matrix Jacobian2T; + typedef Eigen::Matrix Jacobian2T; virtual void reverseAD2(const Jacobian2T& dFdT, JacobianMap& jacobians) const = 0; }; @@ -69,7 +69,7 @@ class ExecutionTrace { } type; union { Key key; - CallRecord* ptr; + CallRecord* ptr; } content; public: /// Pointer always starts out as a Constant @@ -87,7 +87,7 @@ public: content.key = key; } /// Take ownership of pointer to a Function Record - void setFunction(CallRecord* record) { + void setFunction(CallRecord* record) { type = Function; content.ptr = record; } @@ -440,7 +440,7 @@ public: } /// Record structure for reverse AD - struct Record: public CallRecord { + struct Record: public CallRecord { ExecutionTrace trace1; JacobianTA dTdA1; @@ -529,7 +529,7 @@ public: } /// Record structure for reverse AD - struct Record: public CallRecord { + struct Record: public CallRecord { ExecutionTrace trace1; ExecutionTrace trace2; JacobianTA1 dTdA1; @@ -636,7 +636,7 @@ public: } /// Record structure for reverse AD - struct Record: public CallRecord { + struct Record: public CallRecord { ExecutionTrace trace1; ExecutionTrace trace2; ExecutionTrace trace3;