mlx.core.linalg.lu_factor

目录

mlx.core.linalg.lu_factor#

lu_factor(a: array, *, stream: None | Stream | Device = None) Tuple[array, array]#

Computes a compact representation of the LU factorization.

参数:
  • a (array) -- Input array.

  • stream (Stream, optional) -- Stream or device. Defaults to None in which case the default stream of the default device is used.

返回:

The LU matrix and pivots array.

返回类型:

tuple(array, array)