diff --git a/gtsam_unstable/nonlinear/ExpressionFactor.h b/gtsam_unstable/nonlinear/ExpressionFactor.h index 95c4d71a8..de6e4983a 100644 --- a/gtsam_unstable/nonlinear/ExpressionFactor.h +++ b/gtsam_unstable/nonlinear/ExpressionFactor.h @@ -35,7 +35,6 @@ class ExpressionFactor: public NoiseModelFactor { T measurement_; ///< the measurement to be compared with the expression Expression expression_; ///< the expression that is AD enabled FastVector dims_; ///< dimensions of the Jacobian matrices - size_t augmentedCols_; ///< total number of columns + 1 (for RHS) static const int Dim = traits::dimension::value; @@ -55,15 +54,6 @@ public: // Get keys and dimensions for Jacobian matrices // An Expression is assumed unmutable, so we do this now boost::tie(keys_, dims_) = expression_.keysAndDims(); - - // Add sizes to know how much memory to allocate on stack in linearize - augmentedCols_ = std::accumulate(dims_.begin(), dims_.end(), 1); - -#ifdef DEBUG_ExpressionFactor - BOOST_FOREACH(size_t d, dims_) - std::cout << d << " "; - std::cout << " -> " << Dim << "x" << augmentedCols_ << std::endl; -#endif } /**