Home » Math » Math_Matrix
Class to represent matrices and matrix operations
This package is unmaintained.
Download latest release 0.8.7 (archived versions might be outdated)
License: PHP
Description
Matrices are represented as 2 dimensional arrays of numbers.
This class defines methods for matrix objects, as well as static methods
to read, write and manipulate matrices, including methods to solve systems
of linear equations (with and without iterative error correction).
Requires the Math_Vector package.
For running the unit tests you will need PHPUnit version 0.6.2 or older.
Maintainers
- Jesus M. Castagnetto (jmcastagnetto) — lead, active
Dependencies
Required
- PHP (>= 4.0.0)
- PEAR Installer (>= 1.5.6)
- Math_Vector (>= 0.7.0)
Releases
- 0.8.7 (beta, 2010-10-05)
Release notes
License: PHP
QA release
Updated minimum version of Math_Vector to 0.7.0 - 0.8.6 (beta, 2010-10-04)
Release notes
License: PHP
QA release
Package 2.0
Bug #884 PEAR QA: improvement for get_class()-usage jmcastagnetto
Bug #4959 Wrong dependency to PHPUnit
Bug #9248 Parse error in PHP5 jmcastagnetto
Bug #10728 multiply() method fou
Bug #11942 setData creates an error even when it isn't raised jmcastagnetto
Bug #13209 Math_Matrix has a method 'clone' which became a keyword as of PHP5 jmcastagnetto
Bug #14986 PHP5 Integration
Bug #16838 subMatrix has an error where checking for the number of columns kguest
Bug #16999 Support for PHP 5 kguest - 0.8.5 (beta, 2003-11-01)
Release notes
License: PHP
Fixed some bugs in matrix multiplication reported by John Pye
(john [at] curioussymbols [dot] com) and
Marcel Brunner (marcel [at] palmer [dot] li).
Fixed some minor documentation incosistencies.Modified the setData() method to accept a Math_Matrix object or
an array of arrays of numbers.
Added the setZeroThreshold() and getZeroThreshold() to set and get the
value used as upper bound to minimize round-off errors.
Added also two static methods to generate famous matrices:
Math_Matrix::makeHilbert() for a square Hilber matrix, and
Math_Matrix::makeHankel() for m by n Hankel matrix.
Reorganized the directories to comply to the current directory organization
proposal.
It is recommended to uninstall the older version of Math_Matrix (and
Math_Vector) before installing this new release to avoid lingering files
(there is also a new release of Math_Vector):
$ pear uninstall Math_Matrix Math_Vector
$ pear install Math_Vector
$ pear install Math_Matrix
Included explicitely the optional dependency on the PHPUnit package version
0.6.2 or older, as current versions of that package need PHP5. - 0.8.0 (stable, 2003-05-16)
Release notes
License: PHP
Initial released under PEAR. Reestructured the package so the main class
contains both instance and class methods to make things simpler.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #884 | Closed | Bug | 2004-02-26 | PEAR QA: improvement for get_class()-usage | |
| #4959 | Bogus | Bug | 2005-08-01 | Wrong dependency to PHPUnit | |
| #5438 | Bogus | Req | 2005-09-16 | transposing not square matrices | |
| #7700 | Bogus | Bug | 0.8.5 | 2006-05-22 | Bug in setCol() |
| #9248 | Closed | Bug | 0.8.5 | 2006-11-06 | Parse error in PHP5 |
| #10728 | Closed | Bug | 0.8.0 | 2007-04-14 | multiply() method |
| #11942 | Closed | Bug | 0.8.0 | 2007-08-30 | setData creates an error even when it isn't raised |
| #13209 | Wont fix | Bug | 0.8.0 | 2008-02-25 | Math_Matrix has a method 'clone' which became a keyword as of PHP5 |
| #14986 | Bogus | Doc | 0.8.5 | 2008-11-10 | PHP5 Integration |
| #16838 | Closed | Bug | 0.8.5 | 2009-11-26 | subMatrix has an error where checking for the number of columns |
| #16999 | Closed | Req | 0.8.5 | 2010-01-15 | Support for PHP 5 |
| #19066 | Closed | Bug | 0.8.7 | 2011-11-21 | Problem calculating inverse for some matrices |
| #20338 | Closed | Bug | SVN | 2014-07-08 | line 382 and 450, change vectopop to vectorop Matrix.php |