tf.keras.ops.cholesky

Computes the Cholesky decomposition of a positive semi-definite matrix.

x Input tensor of shape (..., M, M).
upper bool

If True, returns the upper-triangular Cholesky factor. If False (default), returns the lower-triangular Cholesky factor.

A tensor of shape (..., M, M) representing the Cholesky factor of x.