add()
add( $matrixValues) : \Matrix\Matrix
Adds two or more matrices
Parameters
$matrixValues |
Throws
- \Matrix\Exception
add( $matrixValues) : \Matrix\Matrix
Adds two or more matrices
$matrixValues |
adjoint(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the adjoint of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
antidiagonal(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the antidiagonal of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
cofactors(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the cofactors of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
determinant(\Matrix\Matrix|array $matrix) : float
Returns the determinant of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
Matrix determinant
diagonal(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the diagonal of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
directsum( $matrixValues) : \Matrix\Matrix
Adds two or more matrices
$matrixValues |
divideby( $matrixValues) : \Matrix\Matrix
Divides two or more matrix numbers
$matrixValues |
divideinto( $matrixValues) : \Matrix\Matrix
Divides two or more matrix numbers
$matrixValues |
identity(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the identity of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The identity matrix
inverse(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the inverse of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
minors(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the minors of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The new matrix
multiply( $matrixValues) : \Matrix\Matrix
Multiplies two or more matrices
$matrixValues |
subtract( $matrixValues) : \Matrix\Matrix
Subtracts two or more matrices
$matrixValues |
trace(\Matrix\Matrix|array $matrix) : float
Returns the trace of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The trace of the matrix
transpose(\Matrix\Matrix|array $matrix) : \Matrix\Matrix
Returns the transpose of a matrix or an array.
\Matrix\Matrix|array | $matrix | Matrix or an array to treat as a matrix. |
If argument isn't a valid matrix or array.
The transposed matrix