fill_masked_covar

grizli.utils.fill_masked_covar(covar, mask)[source]

Fill a covariance matrix in a larger array that had masked values

Parameters:
covar : (M,M) square ndarray

Masked covariance array.

mask : bool mask, N>M

The original mask.

Returns:
covar_full : ndarray

Full covariance array with dimensions (N,N).