4.1.9.1.1.1.2. statsmodels.base._penalties.CovariancePenalty.func

CovariancePenalty.func(mat, mat_inv)[source]
Parameters:

mat : square matrix

The matrix to be penalized.

mat_inv : square matrix

The inverse of mat.

Returns:

A scalar penalty value