lu#

static vectorious.lu(x)#

Performs full LU decomposition on x. Accelerated with LAPACK ?getrf.

Arguments:
Returns:

Array.<NDArray, Int32Array>

Examples:

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

lu([[1, 3, 5], [2, 4, 7], [1, 1, 0]]); // => [array([[1, 0, 0], [0.5, 1, 0], [0.5, -1, 1]]), array([[2, 4, 7], [0, 1, 1.5], [0, 0, -2]]), Int32Array([2, 2, 3])]