Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.7

Bug #10728 multiply() method
Submitted: 2007-04-14 19:00 UTC
From: fou Assigned: fou
Status: Closed Package: Math_Matrix (version 0.8.0)
PHP Version: 4.4.4 OS: Mac OS X Version 10.4.9
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-14 19:00 UTC] fou (Gabriel Fouasnon)
Description: ------------ in the file Matrix.php in the function multiply(&$m1) line 1106 if ($nc1 != $nr) { should be if ($nc != $nr1) { The matrix multiplication doesn't work otherwise. Also I believe this is truly what the author intended because the error message in this if-block says: 'Incompatible sizes columns in matrix must be the same as rows in parameter matrix' It's clear from the code that $nc belongs to the matrix and that $nr1 belongs to the parameter matrix.

Comments

 [2007-04-15 00:07 UTC] fou (Gabriel Fouasnon)
This actually was fixed in the beta 0.8.5 (beta) version.