diff --git a/include/ceres/internal/eigen.h b/include/ceres/internal/eigen.h index 7138804ac..7853ea79f 100644 --- a/include/ceres/internal/eigen.h +++ b/include/ceres/internal/eigen.h @@ -58,34 +58,21 @@ typedef Eigen::Map > ConstColMajorMatrixRef; - - // C++ does not support templated typdefs, thus the need for this // struct so that we can support statically sized Matrix and Maps. template struct EigenTypes { - typedef Eigen::Matrix - Matrix; + typedef Eigen::Matrix + Matrix; - typedef Eigen::Map< - Eigen::Matrix > - MatrixRef; - - typedef Eigen::Matrix - Vector; - - typedef Eigen::Map < - Eigen::Matrix > - VectorRef; - - - typedef Eigen::Map< - const Eigen::Matrix > - ConstMatrixRef; - - typedef Eigen::Map < - const Eigen::Matrix > - ConstVectorRef; + typedef Eigen::Map MatrixRef; + typedef Eigen::Map ConstMatrixRef; + typedef Eigen::Matrix Vector; + typedef Eigen::Map > VectorRef; + typedef Eigen::Map > ConstVectorRef; }; } // namespace ceres