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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 19 - 17 = ?

 
 [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.