Skip to content
Snippets Groups Projects
Commit b8a4edad authored by jcarpent's avatar jcarpent
Browse files

[All] Remove unecessary UnalignedEquivalent types

parent a02f5cd8
No related branches found
No related tags found
No related merge requests found
/*
* 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();
......
/*
* 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__
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment