lu_factor#

static vectorious.lu_factor(x)#

Performs LU factorization on x. Accelerated with LAPACK ?getrf.

Arguments:
Returns:

Array.<(NDArray|Int32Array)>

Examples:

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

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