Determinant as modulus and sign. Equivalent to R's determinant().
determinant()
Computed from an LU decomposition; the log modulus is the sum of the logs of the absolute diagonal elements.
A square matrix (array of rows).
logarithm: return the natural logarithm of the modulus. Default: true.
logarithm
true
The modulus and sign. See Determinant.
determinant([[1, 2], [3, 4]]); // { modulus: 0.6931471805599453, sign: -1 }determinant([[1, 2], [3, 4]], { logarithm: false }); // { modulus: 2, sign: -1 } Copy
determinant([[1, 2], [3, 4]]); // { modulus: 0.6931471805599453, sign: -1 }determinant([[1, 2], [3, 4]], { logarithm: false }); // { modulus: 2, sign: -1 }
Determinant as modulus and sign. Equivalent to R's
determinant().Computed from an LU decomposition; the log modulus is the sum of the logs of the absolute diagonal elements.