Method |
Description |
|
__construct ( array $literal ) |
Example:
$transform = new Matrix([
[0, 1, 2],
[3, 4, 5],
[6, 7, 8]
]); |
|
addMatrix ( self $value ) : self |
|
|
addScalar ( float $value ) : self |
|
|
adjugate ( ) : self |
|
|
concatenateBottom ( self $other ) : self |
|
|
concatenateRight ( self $other ) : self |
|
|
determinant ( ) : float |
|
|
diagonal ( ) : self |
|
|
entrywise ( self $value ) : self |
|
|
equals ( Matrix $matrix ) : boolean |
|
|
get ( integer $row, integer $column ) : float |
|
|
getColumnCount ( ) : integer |
|
|
getRowCount ( ) : integer |
|
|
identity ( integer $size ) : self |
|
|
inverse ( ) : self |
|
|
isSquare ( ) : boolean |
|
|
lower ( boolean $unitriangular ) : self |
|
|
map ( callable $callback ) : self |
Iterates over the current matrix with a callback function to return a new
matrix with the mapped values. $callback takes four arguments:
- The current matrix element
- The current row
- The current column
- The matrix being iterated over |
|
multiplyMatrix ( self $value ) : self |
|
|
multiplyScalar ( float $value ) : self |
|
|
sliceColumns ( integer $offset, integer $length = null ) : self |
|
|
sliceRows ( integer $offset, integer $length = null ) : self |
|
|
spliceColumns ( integer $offset, integer $length = null, array $replacement = null ) : self |
|
|
spliceRows ( integer $offset, integer $length = null, array $replacement = null ) : self |
|
|
subtractMatrix ( self $value ) : self |
|
|
subtractScalar ( float $value ) : self |
|
|
toArray ( ) : array |
|
|
trace ( ) : float |
|
|
transpose ( ) : self |
|
|
upper ( boolean $unitriangular ) : self |
|
|