tf.keras.ops.lu_factor

Computes the lower-upper decomposition of a square matrix.

x A tensor of shape (..., M, M).

A tuple of two tensors: a tensor of shape (..., M, M) containing the lower and upper triangular matrices and a tensor of shape (..., M) containing the pivots.