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
80872f57
Commit
80872f57
authored
7 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[All] Remove unecessary UnalignedEquivalent types
parent
977844fd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/eigenpy.hpp
+1
-8
1 addition, 8 deletions
src/eigenpy.hpp
src/fwd.hpp
+1
-21
1 addition, 21 deletions
src/fwd.hpp
unittest/matrix.cpp
+1
-1
1 addition, 1 deletion
unittest/matrix.cpp
with
3 additions
and
30 deletions
src/eigenpy.hpp
+
1
−
8
View file @
80872f57
/*
/*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
* Copyright 2014
-2017
, Nicolas Mansard
and Justin Carpentier
, LAAS-CNRS
*
*
* This file is part of eigenpy.
* This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or
* eigenpy is free software: you can redistribute it and/or
...
@@ -22,13 +22,6 @@
...
@@ -22,13 +22,6 @@
namespace
eigenpy
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. */
/* Enable Eigen-Numpy serialization for a set of standard MatrixBase instance. */
void
enableEigenPy
();
void
enableEigenPy
();
...
...
This diff is collapsed.
Click to expand it.
src/fwd.hpp
+
1
−
21
View file @
80872f57
/*
/*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
* Copyright 2014
-2017
, Nicolas Mansard
and Justin Carpentier
, LAAS-CNRS
*
*
* This file is part of eigenpy.
* This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or
* eigenpy is free software: you can redistribute it and/or
...
@@ -24,24 +24,4 @@
...
@@ -24,24 +24,4 @@
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#endif
#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__
#endif // ifndef __eigenpy_fwd_hpp__
This diff is collapsed.
Click to expand it.
unittest/matrix.cpp
+
1
−
1
View file @
80872f57
...
@@ -53,7 +53,7 @@ Eigen::Matrix3d naturals(bool verbose)
...
@@ -53,7 +53,7 @@ Eigen::Matrix3d naturals(bool verbose)
}
}
template
<
typename
MatType
>
template
<
typename
MatType
>
Eigen
::
MatrixXd
reflex
(
const
typename
eigenpy
::
UnalignedEquivalent
<
MatType
>::
t
ype
&
M
,
bool
verbose
)
Eigen
::
MatrixXd
reflex
(
const
MatT
ype
&
M
,
bool
verbose
)
{
{
if
(
verbose
)
if
(
verbose
)
std
::
cout
<<
"EigenMat = "
<<
M
<<
std
::
endl
;
std
::
cout
<<
"EigenMat = "
<<
M
<<
std
::
endl
;
...
...
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