diff --git a/src/eigenpy.hpp b/src/eigenpy.hpp index 9acb89771b16ad2058ed0871209dca787e1243b2..cd01d8bcc6c44ca5aaa03304802ae55c8ecc573d 100644 --- a/src/eigenpy.hpp +++ b/src/eigenpy.hpp @@ -1,5 +1,5 @@ /* - * Copyright 2014, Nicolas Mansard, LAAS-CNRS + * Copyright 2014-2017, Nicolas Mansard and Justin Carpentier, LAAS-CNRS * * This file is part of eigenpy. * eigenpy is free software: you can redistribute it and/or @@ -22,13 +22,6 @@ namespace eigenpy { - typedef UnalignedEquivalent<Eigen::MatrixXd>::type MatrixXd_fx; - typedef UnalignedEquivalent<Eigen::Matrix3d>::type Matrix3d_fx; - typedef UnalignedEquivalent<Eigen::Matrix4d>::type Matrix4d_fx; - typedef UnalignedEquivalent<Eigen::VectorXd>::type VectorXd_fx; - typedef UnalignedEquivalent<Eigen::Vector3d>::type Vector3d_fx; - typedef UnalignedEquivalent<Eigen::Vector4d>::type Vector4d_fx; - /* Enable Eigen-Numpy serialization for a set of standard MatrixBase instance. */ void enableEigenPy(); diff --git a/src/fwd.hpp b/src/fwd.hpp index 378046ed5cc89d6cc5dccdb6ac1c8e069dd0a59e..ab9cf717f2c6d2a5f3f87f5c422c6c0fcd88d4ba 100644 --- a/src/fwd.hpp +++ b/src/fwd.hpp @@ -1,5 +1,5 @@ /* - * Copyright 2014, Nicolas Mansard, LAAS-CNRS + * Copyright 2014-2017, Nicolas Mansard and Justin Carpentier, LAAS-CNRS * * This file is part of eigenpy. * eigenpy is free software: you can redistribute it and/or @@ -24,24 +24,4 @@ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #endif -namespace eigenpy -{ - template<typename D, typename Scalar = typename D::Scalar> - struct UnalignedEquivalent - { - typedef Eigen::MatrixBase<D> MatType; - typedef Eigen::Matrix<Scalar, - D::RowsAtCompileTime, - D::ColsAtCompileTime, -#ifndef EIGENPY_ALIGNED - D::Options | Eigen::DontAlign, -#else - D::Options, -#endif - D::MaxRowsAtCompileTime, - D::MaxColsAtCompileTime> type; - }; - -} // namespace eigenpy - #endif // ifndef __eigenpy_fwd_hpp__ diff --git a/unittest/matrix.cpp b/unittest/matrix.cpp index a1f30d5f594f3c1247a7a64c636899849b748bfa..8eff2946857fa3a3d8e66d035aadadadd4a6e22c 100644 --- a/unittest/matrix.cpp +++ b/unittest/matrix.cpp @@ -53,7 +53,7 @@ Eigen::Matrix3d naturals(bool verbose) } template<typename MatType> -Eigen::MatrixXd reflex(const typename eigenpy::UnalignedEquivalent<MatType>::type & M, bool verbose) +Eigen::MatrixXd reflex(const MatType & M, bool verbose) { if(verbose) std::cout << "EigenMat = " << M << std::endl;