pangolin.interface.cholesky

Contents

pangolin.interface.cholesky#

pangolin.interface.cholesky(a)#

Compute the lower-triangular Cholesky factor of a square matrix.

The IR verifies that the input is a square matrix. Positive-definiteness depends on the matrix’s value and therefore remains a backend-level value constraint.

Parameters:

a (RVLike) – Input positive-definite matrix.

Return type:

RV

Examples

>>> import pangolin.interface as pi
>>> pi.cholesky([[2, 0], [0, 3]]).shape
(2, 2)