PHP Classes

LW_Matrix: Perform math operations with matrices

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 157 All time: 8,983 This week: 120Up
Version License PHP version Categories
lw-matrix 1.0.0GNU Lesser Genera...5.0PHP 5, Math


This class can perform math operations with matrices.

It can take the definition of a matrix as a string with the values of the elements separated by commas and the rows by semi-colons.

It can also create an identity matrix given its size.

The class can perform several types of operations with matrices like add or subtract another matrix, multiply by a scalar value or by another matrix, get the determinant, get the cofactor, transpose the matrix, adjugate and invert.

Picture of Jon Lawrence
  Performance   Level  
Name: Jon Lawrence <contact>
Classes: 4 packages by
Country: United States United States
Age: 39
All time rank: 790106 in United States United States
Week rank: 368 Up43 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  • linear_screenshot.jpg
  Files folder image Files  
File Role Description
Plain text file matrix.class.php Class Main Class
Accessible without login Plain text file linear.matrix.php Example Solve Linear Equations
Accessible without login Plain text file matrix.example.php Example Example usage

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,983
This week:120Up
User Comments (2)
11 years ago (Octavio Leon)
Excellent job.
11 years ago (alfredo de oliveira)