Skip to content

Latest commit

 

History

History
56 lines (27 loc) · 769 Bytes

File metadata and controls

56 lines (27 loc) · 769 Bytes

Home > @josh-brown/vector > determinant

determinant() function

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;

Parameters

Parameter

Type

Description

matrix

Matrix<S>

A square matrix

Returns:

S

  • The determinant