vector __setitem__ raises IndexError at improper time
Bug #549764 reported by
Jeff Packer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
PyEigen | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Undecided
|
Jeff Packer |
Bug Description
All vector classes in pyeigen 0.1 raise an IndexError at inappropriate times:
eg:
>> v = pyeigen.Vector4f()
>> v[4] = 10.0 # this should raise an IndexError!
>> v
Vector4f(0.0000, 0.0000, 0.0000, 0.0000)
>> v[3] = 1.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index out of range
>> v
Vector4f(0.0000, 0.0000, 0.0000, 1.0000)
Related branches
lp:~jfpacker/pyeigen/bugfixes-0.1
Merged
into
lp:pyeigen
- Jussi Lepistö: Approve
-
Diff: 385 lines (+91/-15)18 files modifiedsource/matrix/matrix2f.cpp (+2/-1)
source/matrix/matrix3f.cpp (+3/-3)
source/matrix/matrix4f.cpp (+5/-5)
source/vector/rowvector2f.cpp (+1/-1)
source/vector/rowvector3f.cpp (+1/-1)
source/vector/rowvector4f.cpp (+1/-1)
source/vector/vector2f.cpp (+1/-1)
source/vector/vector3f.cpp (+1/-1)
source/vector/vector4f.cpp (+1/-1)
test/test_matrix2f.py (+8/-0)
test/test_matrix3f.py (+9/-0)
test/test_matrix4f.py (+10/-0)
test/test_rowvector2f.py (+8/-0)
test/test_rowvector3f.py (+8/-0)
test/test_rowvector4f.py (+8/-0)
test/test_vector2f.py (+8/-0)
test/test_vector3f.py (+8/-0)
test/test_vector4f.py (+8/-0)
Changed in pyeigen: | |
assignee: | nobody → Jeff Packer (jfpacker) |
Changed in pyeigen: | |
status: | New → Fix Committed |
To post a comment you must log in.