Matrix4f eq doesn't work (but the others do...)

Bug #549816 reported by Jeff Packer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyEigen
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Unassigned

Bug Description

EDIT: I don't think richcompare is set properly.

Matrix4f __eq__ doesn't work when the objects are different but it works when they are the same. Other types of matrices don't have this problem.

eg:

>>> from pyeigen import *
>>> n = Matrix4f(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
>>> m = Matrix4f(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
>>> m == n # Should be True!
False #crud, got False
>>> n == n # This works!
True
>>> m < n # Should raise
False
>>> m = Matrix3f(1,2,3,4,5,6,7,8,9,)
>>> n = Matrix3f(1,2,3,4,5,6,7,8,9,)
>>> n == m # This works!
True
>>> n = Matrix2f(1,2,3,4,)
>>> m = Matrix2f(1,2,3,4,)
>>> n == m # This works!
True
>>> m < n
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Comparison not supported

Related branches

Jeff Packer (jfpacker)
description: updated
Changed in pyeigen:
status: New → In Progress
Jeff Packer (jfpacker)
Changed in pyeigen:
status: In Progress → Fix Committed
Changed in pyeigen:
milestone: none → 0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.