Home > @josh-brown/vector > determinant
Uses expansion of minors to calculate the determinant of a matrix. Throws an error if the input is not square.
Signature:
export declare function determinant<S>(matrix: Matrix<S>): S;|
Parameter |
Type |
Description |
|---|---|---|
|
matrix |
Matrix<S> |
A square matrix |
Returns:
S
- The determinant