Math_Matrix Bug #10728
http://pear.php.net/bugs/10728
[Closed] multiply() methoden-uspear-webmaster@lists.php.netpear-webmaster@lists.php.nethourly12000-01-01T12:00+00:00multiply() methodDescription:
------------
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.fou
fou
http://pear.php.net/bugs/10728
Math_Matrix Bug
Reported by fou
2007-04-14T19:00:53+00:00
PHP: 4.4.4 OS: Mac OS X Version 10.4.9 Package Version: 0.8.0
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.]]>Math_Matrix Bug
Reported by fou
2007-04-14T19:00:53+00:00
PHP: 4.4.4 OS: Mac OS X Version 10.4.9 Package Version: 0.8.0
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.]]>2007-04-14T19:00:53+00:00
fou [2007-04-15 00:07]
http://pear.php.net/bugs/10728#1176595654
This actually was fixed in the beta 0.8.5 (beta) version.]]>This actually was fixed in the beta 0.8.5 (beta) version.]]>2007-04-15T00:07:34+00:00