inv#

static vectorious.inv(x)#

Determines the inverse of x. Accelerated with LAPACK ?getrf and ?getri.

Arguments:
Returns:

NDArray

Examples:

import { inv } from 'vectorious/core/inv';

inv([[2, -1, 0], [-1, 2, -1], [0, -1, 2]]); // => array([[0.75, 0.5, 0.25], [0.5, 1, 0.5], [0.25, 0.5, 0.75]])