Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
eigenpy
Commits
37f9b3b2
Commit
37f9b3b2
authored
7 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[All] Set deprecated enableEigenPySpecific with two template parameters
parent
cfbd185f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/details.hpp
+6
-0
6 additions, 0 deletions
src/details.hpp
src/eigenpy.cpp
+8
-8
8 additions, 8 deletions
src/eigenpy.cpp
src/eigenpy.hpp
+7
-1
7 additions, 1 deletion
src/eigenpy.hpp
with
21 additions
and
9 deletions
src/details.hpp
+
6
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
src/eigenpy.cpp
+
8
−
8
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
This diff is collapsed.
Click to expand it.
src/eigenpy.hpp
+
7
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment