[matrix] Cancel the 188 changset. Multiplying matrices was, in fact, a bad idea
authorSimon Chabot <simon.chabot@logilab.fr>
Tue, 06 Nov 2012 10:51:43 +0100
changeset 70 e9de54adb8f7
parent 69 477442625b03
child 71 22c93ceb0163
[matrix] Cancel the 188 changset. Multiplying matrices was, in fact, a bad idea It was a bad idea because if two values were identical, the distance was 0, so the product, whereas all others values could be different
matrix.py
--- a/matrix.py	Tue Nov 06 10:49:10 2012 +0100
+++ b/matrix.py	Tue Nov 06 10:51:43 2012 +0100
@@ -152,5 +152,5 @@
     """
     globalmatrix = Distancematrix(*items[0])
     for item in items[1:]:
-        globalmatrix *=  Distancematrix(*item)
+        globalmatrix += Distancematrix(*item)
     return globalmatrix