Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
37f9b3b2
Commit
37f9b3b2
authored
Jan 08, 2018
by
jcarpent
Browse files
[All] Set deprecated enableEigenPySpecific with two template parameters
parent
cfbd185f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/details.hpp
View file @
37f9b3b2
...
...
@@ -215,6 +215,12 @@ namespace eigenpy
template
<
typename
MatType
,
typename
EigenEquivalentType
>
void
enableEigenPySpecific
()
{
enableEigenPySpecific
<
MatType
>
();
}
template
<
typename
MatType
>
void
enableEigenPySpecific
()
{
numpy_import_array
();
if
(
check_registration
<
MatType
>
())
return
;
...
...
src/eigenpy.cpp
View file @
37f9b3b2
...
...
@@ -24,15 +24,15 @@ namespace eigenpy
{
Exception
::
registerException
();
enableEigenPySpecific
<
Eigen
::
MatrixXd
,
Eigen
::
MatrixXd
>
();
enableEigenPySpecific
<
Eigen
::
Matrix2d
,
Eigen
::
Matrix2d
>
();
enableEigenPySpecific
<
Eigen
::
Matrix3d
,
Eigen
::
Matrix3d
>
();
enableEigenPySpecific
<
Eigen
::
Matrix4d
,
Eigen
::
Matrix4d
>
();
enableEigenPySpecific
<
Eigen
::
MatrixXd
>
();
enableEigenPySpecific
<
Eigen
::
Matrix2d
>
();
enableEigenPySpecific
<
Eigen
::
Matrix3d
>
();
enableEigenPySpecific
<
Eigen
::
Matrix4d
>
();
enableEigenPySpecific
<
Eigen
::
VectorXd
,
Eigen
::
VectorXd
>
();
enableEigenPySpecific
<
Eigen
::
Vector2d
,
Eigen
::
Vector2d
>
();
enableEigenPySpecific
<
Eigen
::
Vector3d
,
Eigen
::
Vector3d
>
();
enableEigenPySpecific
<
Eigen
::
Vector4d
,
Eigen
::
Vector4d
>
();
enableEigenPySpecific
<
Eigen
::
VectorXd
>
();
enableEigenPySpecific
<
Eigen
::
Vector2d
>
();
enableEigenPySpecific
<
Eigen
::
Vector3d
>
();
enableEigenPySpecific
<
Eigen
::
Vector4d
>
();
}
}
// namespace eigenpy
src/eigenpy.hpp
View file @
37f9b3b2
...
...
@@ -19,17 +19,23 @@
#include
"eigenpy/fwd.hpp"
#include
"eigenpy/memory.hpp"
#include
"eigenpy/deprecated.hh"
namespace
eigenpy
{
/* Enable Eigen-Numpy serialization for a set of standard MatrixBase instance. */
void
enableEigenPy
();
template
<
typename
MatType
>
void
enableEigenPySpecific
();
/* Enable the Eigen--Numpy serialization for the templated MatrixBase class.
* The second template argument is used for inheritance of Eigen classes. If
* using a native Eigen::MatrixBase, simply repeat the same arg twice. */
template
<
typename
MatType
,
typename
EigenEquivalentType
>
void
enableEigenPySpecific
();
EIGENPY_DEPRECATED
void
enableEigenPySpecific
();
}
// namespace eigenpy
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment