Skip to content

Commit 6a502cd

Browse files
committed
[C++] Register only FROM et TO MatType conversions
One should register the non aligned version if needed explicitely
1 parent a9c6204 commit 6a502cd

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/details.hpp

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -206,28 +206,10 @@ namespace eigenpy
206206
template<typename MatType,typename EigenEquivalentType>
207207
void enableEigenPySpecific()
208208
{
209-
210-
#ifdef EIGEN_DONT_VECTORIZE
211-
212-
boost::python::to_python_converter<MatType,
213-
eigenpy::EigenToPy<MatType,MatType> >();
214-
eigenpy::EigenFromPy<MatType,MatType>();
215-
#else
216-
217-
boost::python::to_python_converter<MatType,
218-
eigenpy::EigenToPy<MatType,MatType> >();
219-
eigenpy::EigenFromPy<MatType,MatType>();
220209
numpy_import_array();
221210

222-
typedef typename eigenpy::UnalignedEquivalent<MatType>::type MatTypeDontAlign;
223-
#ifndef EIGENPY_ALIGNED
224-
boost::python::to_python_converter<MatTypeDontAlign,
225-
eigenpy::EigenToPy<MatTypeDontAlign,MatTypeDontAlign> >();
226-
eigenpy::EigenFromPy<MatTypeDontAlign,MatTypeDontAlign>();
227-
#endif
228-
#endif
229-
230-
211+
boost::python::to_python_converter<MatType,EigenToPy<MatType,MatType> >();
212+
EigenFromPy<MatType,MatType>();
231213
}
232214

233215
} // namespace eigenpy

0 commit comments

Comments
 (0)