check_cov#

check_cov(cov: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | Number, X: ndarray, force_float: bool = False) ndarray[source]#

Check if the fixed covariance matrix parameter is valid.

Parameters:
covnp.ndarray

Fixed covariance matrix for the cost calculation.

Xnp.ndarray

2d input data.

force_floatbool, default=False

If True, force the covariance matrix to be of floating point data type.

Returns:
covnp.ndarray

Fixed covariance matrix for the cost calculation.