File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if(NOT ${EIGEN3_VERSION} VERSION_LESS "3.2.0")
3333 add_lib_unit_test(eigen_ref)
3434endif ()
3535add_lib_unit_test(user_type)
36- add_lib_unit_test(vector )
36+ add_lib_unit_test(std_vector )
3737
3838add_python_unit_test("py-matrix" "unittest/python/test_matrix.py" "unittest" )
3939add_python_unit_test("py-geometry" "unittest/python/test_geometry.py"
Original file line number Diff line number Diff line change 22import eigenpy
33import inspect
44import pprint
5- import vector
6- from vector import printVectorOfMatrix , printVectorOf3x3 , copyStdVector
5+ import std_vector
6+ from std_vector import printVectorOfMatrix , printVectorOf3x3 , copyStdVector
77
88np .random .seed (0 )
99
@@ -43,8 +43,8 @@ def checkAllValues(li1, li2):
4343assert "StdVec_Mat3d" in printVectorOf3x3 .__doc__
4444printVectorOf3x3 (l4 )
4545
46- l4_copy2 = vector .copyStdVec_3x3 (l4 )
47- assert isinstance (l4_copy2 , vector .StdVec_Mat3d )
46+ l4_copy2 = std_vector .copyStdVec_3x3 (l4 )
47+ assert isinstance (l4_copy2 , std_vector .StdVec_Mat3d )
4848
4949
5050def checkZero (l ):
@@ -54,21 +54,21 @@ def checkZero(l):
5454
5555print ("Check setZero() works:" )
5656print ("l1:" )
57- vector .setZero (l1 )
57+ std_vector .setZero (l1 )
5858print (l1 )
5959checkZero (l1 )
6060print ("-----------------" )
6161
6262print ("l2:" )
6363l2_py = l2 .tolist ()
64- vector .setZero (l2_py )
64+ std_vector .setZero (l2_py )
6565pprint .pprint (l2_py )
6666checkZero (l2_py )
6767print ("-----------------" )
6868
6969l3_copy = copyStdVector (l3 )
7070print ("l3_std:" )
71- vector .setZero (l3_copy )
71+ std_vector .setZero (l3_copy )
7272pprint .pprint (list (l3_copy ))
7373checkZero (l3_copy )
7474print ("-----------------" )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void setZero(std::vector<MatType> &Ms) {
2828 }
2929}
3030
31- BOOST_PYTHON_MODULE (vector ) {
31+ BOOST_PYTHON_MODULE (std_vector ) {
3232 namespace bp = boost::python;
3333 using namespace eigenpy ;
3434
You can’t perform that action at this time.
0 commit comments