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
9961ef14
Commit
9961ef14
authored
6 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Test] Increase ref test with Eigen::Ref example
parent
80a2aff2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittest/ref.cpp
+13
-5
13 additions, 5 deletions
unittest/ref.cpp
with
13 additions
and
5 deletions
unittest/ref.cpp
+
13
−
5
View file @
9961ef14
...
...
@@ -36,12 +36,20 @@ void printVector(const eigenpy::Ref<MatType> & mat)
printMatrix
(
mat
);
}
template
<
typename
MatType
>
void
setOnes
(
e
igen
py
::
Ref
<
MatType
>
mat
)
template
<
typename
MatType
,
int
Options
,
typename
StrideType
>
void
setOnes
(
E
igen
::
Ref
<
MatType
,
Options
,
StrideType
>
mat
)
{
mat
.
setOnes
();
}
template
<
typename
MatType
>
void
setOnes_wrap
(
eigenpy
::
Ref
<
MatType
>
mat
)
{
setOnes
(
mat
);
}
BOOST_PYTHON_MODULE
(
ref
)
{
namespace
bp
=
boost
::
python
;
...
...
@@ -53,7 +61,7 @@ BOOST_PYTHON_MODULE(ref)
bp
::
def
(
"printVector"
,
printVector
<
VectorXd
>
);
bp
::
def
(
"setOnes"
,
setOnes
<
Vector3d
>
);
bp
::
def
(
"setOnes"
,
setOnes
<
VectorXd
>
);
bp
::
def
(
"setOnes"
,
setOnes
<
MatrixXd
>
);
bp
::
def
(
"setOnes"
,
setOnes
_wrap
<
Vector3d
>
);
bp
::
def
(
"setOnes"
,
setOnes
_wrap
<
VectorXd
>
);
bp
::
def
(
"setOnes"
,
setOnes
_wrap
<
MatrixXd
>
);
}
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