Skip to content

inv

inv(aIn): Var

Defined in: linalg.js:268

Inverse of a general square matrix.

Prefer solveGeneral(A, B) over matmul(inv(A), B): it is cheaper and better conditioned. This exists for the cases where the inverse itself is the quantity of interest.

Parameters

aIn

Var | number[][]

Returns

Var