PHP Classes

PHP Matrix Math Library: Perform operations to manipulate matrices

Recommend this page to a friend!
     
  Info   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-07-28 (-3 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: 96 All time: 9,863 This week: 48Up
Version License PHP version Categories
php-maths-matrix 1.0.1GNU General Publi...5PHP 5, Data types, Math
Description 

Author

This class can perform operations to manipulate matrices

It can take bi-dimensional arrays with numbers as parameters and can perform several types of matrix operations. Currently it can:

- Multiply two matrices
- Divide two matrices by inverting one matrix and multiplying by another
- Invert a matrix
- Add or subtract two matrices
- Transpose a matrix
- Display a matrix in a HTML page
- Check if a matrix is squared
- Find the determinant of a matrix
- Find the adjunct matrix
- Calculate a matrix co-factor
- Calculate a matrix minor
- Solve an equation given two matrices of factors

Picture of Clement Sam
  Performance   Level  
Name: Clement Sam is available for providing paid consulting. Contact Clement Sam .
Classes: 4 packages by
Country: Ghana Ghana
Age: 26
All time rank: 29372 in Ghana Ghana
Week rank: 195 Up2 in Ghana Ghana Equal
Innovation award
Innovation award
Nominee: 1x

Recommendations

Perform matrix arithmetic
I need to compute determinats

Details

PHP Matrix Maths Library

This class can perform operations to manipulate matrices

It can take bi-dimensional arrays with numbers as parameters and can perform several types of matrix operations. Currently it can:

  • Multiply two matrices
  • Divide two matrices by inverting one matrix and multiplying by another
  • Invert a matrix
  • Add or subtract two matrices
  • Transpose a matrix
  • Display a matrix in a HTML page
  • Check if a matrix is squared
  • Find the determinant of a matrix
  • Find the adjunct matrix
  • Calculate a matrix co-factor
  • Calculate a matrix minor
  • Solve an equation given two matrices of factors

Demo & Usage

php-maths-matrix.herokuapp.com


  PHP Maths Matrix Demo PageExternal page  

Open in a separate window

  Files folder image Files (6)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetest (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file _config.yml Data Auxiliary data

  Files folder image Files (6)  /  src  
File Role Description
  Plain text file Matrix.php Class Class source

  Files folder image Files (6)  /  test  
File Role Description
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file test.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:96
This week:0
All time:9,863
This week:48Up