Qu

det

Builtin index · Core maths

result = det(A)

Input: A · Output: result

What it is

Determinant of a square Mat or CMat, via LU decomposition.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = det(A)
A Mat or CMatnot documented yet
Num Complex or CMator Complex for a CMat
Returns a scalar Num (or Complex for a CMat).

Examples

From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.

A = [4, 7; 2, 6]
print("det(A) = {det(A)}")     # 10

print("rank(A) = {rank(A)}")   # 2

output
det(A) = 10
rank(A) = 2

from numerics-dsp

How it works

det(A) — the determinant, via LU decomposition.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.