serve/vendor/markbaker/matrix/classes/src/Functionsdeterminant.php

Function code for the matrix determinant() function

Functions

determinant()

determinant(\Matrix\Matrix|array  $matrix) : float

Returns the determinant of a matrix or an array.

Parameters

\Matrix\Matrix|array $matrix

Matrix or an array to treat as a matrix.

Throws

\Matrix\Exception

If argument isn't a valid matrix or array.

Returns

float —

Matrix determinant