diff --git a/gtsam/nonlinear/AdaptAutoDiff.h b/gtsam/nonlinear/AdaptAutoDiff.h index adb2031df..341bb7d10 100644 --- a/gtsam/nonlinear/AdaptAutoDiff.h +++ b/gtsam/nonlinear/AdaptAutoDiff.h @@ -33,7 +33,7 @@ namespace detail { template struct Origin { T operator()() { return traits::Identity();} }; -// but dimple manifolds don't have one, so we just use the default constructor +// but simple manifolds don't have one, so we just use the default constructor template struct Origin { T operator()() { return T();} }; @@ -109,7 +109,7 @@ public: // Get derivatives with AutoDiff double *parameters[] = { v1.data(), v2.data() }; - double rowMajor1[N * M1], rowMajor2[N * M2]; // om the stack + double rowMajor1[N * M1], rowMajor2[N * M2]; // on the stack double *jacobians[] = { rowMajor1, rowMajor2 }; success = AutoDiff::Differentiate(f, parameters, 2, result.data(), jacobians);