MatrixFunctions
Table of Contents
| getMatrix() | Convert parameter to matrix. | Matrix |
|---|---|---|
| determinant() | MDETERM. | float|string |
| inverse() | MINVERSE. | array|string |
| multiply() | MMULT. | array|string |
| identity() | MUnit. | array|string |
Methods
getMatrix()
Convert parameter to matrix.
private
static getMatrix(
$matrixValues :
mixed
)
: Matrix
Parameters
- $matrixValues : mixed
A matrix of values
Return values
Matrixdeterminant()
MDETERM.
public
static determinant(
$matrixValues :
mixed
)
: float|string
Returns the matrix determinant of an array.
Excel Function: MDETERM(array)
Parameters
- $matrixValues : mixed
A matrix of values
Return values
float|string —The result, or a string containing an error
inverse()
MINVERSE.
public
static inverse(
$matrixValues :
mixed
)
: array|string
Returns the inverse matrix for the matrix stored in an array.
Excel Function: MINVERSE(array)
Parameters
- $matrixValues : mixed
A matrix of values
Return values
array|string —The result, or a string containing an error
multiply()
MMULT.
public
static multiply(
$matrixData1 :
mixed
, $matrixData2 :
mixed
)
: array|string
Parameters
- $matrixData1 : mixed
A matrix of values
- $matrixData2 : mixed
A matrix of values
Return values
array|string —The result, or a string containing an error
identity()
MUnit.
public
static identity(
$dimension :
mixed
)
: array|string
Parameters
- $dimension : mixed
Number of rows and columns
Return values
array|string —The result, or a string containing an error