Skip to content

Commit 0fce853

Browse files
committed
core: remove eigenpy:Ref
No more useful
1 parent 17e7f02 commit 0fce853

File tree

8 files changed

+0
-198
lines changed

8 files changed

+0
-198
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ SET(${PROJECT_NAME}_HEADERS
121121
include/eigenpy/angle-axis.hpp
122122
include/eigenpy/quaternion.hpp
123123
include/eigenpy/stride.hpp
124-
include/eigenpy/ref.hpp
125124
include/eigenpy/version.hpp
126125
)
127126

include/eigenpy/eigen-allocator.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -388,24 +388,6 @@ namespace eigenpy
388388
EigenAllocator<MatType>::copy(ref,pyArray);
389389
}
390390
};
391-
392-
template<typename MatType>
393-
struct EigenAllocator< eigenpy::Ref<MatType> >
394-
{
395-
typedef eigenpy::Ref<MatType> Type;
396-
typedef typename MatType::Scalar Scalar;
397-
398-
static void allocate(PyArrayObject * pyArray, void * storage)
399-
{
400-
typename NumpyMap<MatType,Scalar>::EigenMap numpyMap = NumpyMap<MatType,Scalar>::map(pyArray);
401-
new (storage) Type(numpyMap);
402-
}
403-
404-
static void copy(Type const & mat, PyArrayObject * pyArray)
405-
{
406-
EigenAllocator<MatType>::copy(mat,pyArray);
407-
}
408-
};
409391
#endif
410392
}
411393

include/eigenpy/eigen-from-python.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,18 +512,6 @@ namespace eigenpy
512512
&eigen_from_py_construct<ConstRefType>,bp::type_id<ConstRefType>());
513513
}
514514
};
515-
516-
// Template specialization for Eigen::Ref
517-
template<typename MatType>
518-
struct EigenFromPyConverter< eigenpy::Ref<MatType> >
519-
{
520-
static void registration()
521-
{
522-
bp::converter::registry::push_back
523-
(reinterpret_cast<void *(*)(_object *)>(&EigenFromPy<MatType>::convertible),
524-
&EigenFromPy<MatType>::construct,bp::type_id<MatType>());
525-
}
526-
};
527515
#endif
528516

529517
}

include/eigenpy/eigen-to-python.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ namespace eigenpy
9090
bp::to_python_converter<MatType,EigenToPy<MatType> >();
9191
}
9292
};
93-
94-
#if EIGEN_VERSION_AT_LEAST(3,2,0)
95-
template<typename MatType>
96-
struct EigenToPyConverter< eigenpy::Ref<MatType> >
97-
{
98-
static void registration()
99-
{
100-
}
101-
};
102-
#endif
10393
}
10494

10595
#endif // __eigenpy_eigen_to_python_hpp__

include/eigenpy/eigenpy.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,9 @@
1010
#include "eigenpy/deprecated.hpp"
1111
#include "eigenpy/config.hpp"
1212

13-
#if EIGEN_VERSION_AT_LEAST(3,2,0)
14-
#include "eigenpy/ref.hpp"
15-
16-
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \
17-
::eigenpy::enableEigenPySpecific<TYPE>(); \
18-
::eigenpy::enableEigenPySpecific< eigenpy::Ref<TYPE> >();
19-
20-
#else // if EIGEN_VERSION_AT_LEAST(3,2,0)
21-
2213
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \
2314
::eigenpy::enableEigenPySpecific<TYPE>();
2415

25-
#endif // if EIGEN_VERSION_AT_LEAST(3,2,0)
26-
2716
#define EIGENPY_MAKE_TYPEDEFS(Type, Options, TypeSuffix, Size, SizeSuffix) \
2817
/** \ingroup matrixtypedefs */ \
2918
typedef Eigen::Matrix<Type, Size, Size, Options> Matrix##SizeSuffix##TypeSuffix; \

include/eigenpy/ref.hpp

Lines changed: 0 additions & 91 deletions
This file was deleted.

unittest/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ADD_LIB_UNIT_TEST(complex "eigen3")
3535
ADD_LIB_UNIT_TEST(return_by_ref "eigen3")
3636
IF(NOT ${EIGEN3_VERSION} VERSION_LESS "3.2.0")
3737
ADD_LIB_UNIT_TEST(eigen_ref "eigen3")
38-
ADD_LIB_UNIT_TEST(eigenpy_ref "eigen3")
3938
ENDIF()
4039

4140
ADD_PYTHON_UNIT_TEST("py-matrix" "unittest/python/test_matrix.py" "unittest")

unittest/eigenpy_ref.cpp

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)