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
f35894cc
Commit
f35894cc
authored
2 years ago
by
Wilson Jallet
Browse files
Options
Downloads
Patches
Plain Diff
unittest: rename vector.cpp to std_vector.cpp
parent
ab28091f
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
unittest/CMakeLists.txt
+1
-1
1 addition, 1 deletion
unittest/CMakeLists.txt
unittest/python/test_std_vector.py
+7
-7
7 additions, 7 deletions
unittest/python/test_std_vector.py
unittest/std_vector.cpp
+1
-1
1 addition, 1 deletion
unittest/std_vector.cpp
with
9 additions
and
9 deletions
unittest/CMakeLists.txt
+
1
−
1
View file @
f35894cc
...
...
@@ -33,7 +33,7 @@ if(NOT ${EIGEN3_VERSION} VERSION_LESS "3.2.0")
add_lib_unit_test
(
eigen_ref
)
endif
()
add_lib_unit_test
(
user_type
)
add_lib_unit_test
(
vector
)
add_lib_unit_test
(
std_
vector
)
add_python_unit_test
(
"py-matrix"
"unittest/python/test_matrix.py"
"unittest"
)
add_python_unit_test
(
"py-geometry"
"unittest/python/test_geometry.py"
...
...
This diff is collapsed.
Click to expand it.
unittest/python/test_std_vector.py
+
7
−
7
View file @
f35894cc
...
...
@@ -2,8 +2,8 @@ import numpy as np
import
eigenpy
import
inspect
import
pprint
import
vector
from
vector
import
printVectorOfMatrix
,
printVectorOf3x3
,
copyStdVector
import
std_
vector
from
std_
vector
import
printVectorOfMatrix
,
printVectorOf3x3
,
copyStdVector
np
.
random
.
seed
(
0
)
...
...
@@ -43,8 +43,8 @@ assert isinstance(l4_copy, eigenpy.StdVec_MatrixXd)
assert
"
StdVec_Mat3d
"
in
printVectorOf3x3
.
__doc__
printVectorOf3x3
(
l4
)
l4_copy2
=
vector
.
copyStdVec_3x3
(
l4
)
assert
isinstance
(
l4_copy2
,
vector
.
StdVec_Mat3d
)
l4_copy2
=
std_
vector
.
copyStdVec_3x3
(
l4
)
assert
isinstance
(
l4_copy2
,
std_
vector
.
StdVec_Mat3d
)
def
checkZero
(
l
):
...
...
@@ -54,21 +54,21 @@ def checkZero(l):
print
(
"
Check setZero() works:
"
)
print
(
"
l1:
"
)
vector
.
setZero
(
l1
)
std_
vector
.
setZero
(
l1
)
print
(
l1
)
checkZero
(
l1
)
print
(
"
-----------------
"
)
print
(
"
l2:
"
)
l2_py
=
l2
.
tolist
()
vector
.
setZero
(
l2_py
)
std_
vector
.
setZero
(
l2_py
)
pprint
.
pprint
(
l2_py
)
checkZero
(
l2_py
)
print
(
"
-----------------
"
)
l3_copy
=
copyStdVector
(
l3
)
print
(
"
l3_std:
"
)
vector
.
setZero
(
l3_copy
)
std_
vector
.
setZero
(
l3_copy
)
pprint
.
pprint
(
list
(
l3_copy
))
checkZero
(
l3_copy
)
print
(
"
-----------------
"
)
...
...
This diff is collapsed.
Click to expand it.
unittest/vector.cpp
→
unittest/
std_
vector.cpp
+
1
−
1
View file @
f35894cc
...
...
@@ -28,7 +28,7 @@ void setZero(std::vector<MatType> &Ms) {
}
}
BOOST_PYTHON_MODULE
(
vector
)
{
BOOST_PYTHON_MODULE
(
std_
vector
)
{
namespace
bp
=
boost
::
python
;
using
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