choleskyDecomposition

Performs the Cholesky decomposition on a given square, positive-definite matrix. The Cholesky decomposition expresses the matrix as L * L^T, where L is a lower triangular matrix.

Return

A lower triangular matrix resulting from the Cholesky decomposition of the input matrix.

Parameters

matrix

The input matrix to decompose. Must be square (rows == cols) and positive-definite.

Throws

if the input matrix is not square or not positive-definite.