cupy.cov¶
-
cupy.
cov
(a, y=None, rowvar=True, bias=False, ddof=None)[source]¶ Returns the covariance matrix of an array.
This function currently does not support
fweights
andaweights
options.Parameters: - a (cupy.ndarray) – Array to compute covariance matrix.
- y (cupy.ndarray) – An additional set of variables and observations.
- rowvar (bool) – If
True
, then each row represents a variable, with observations in the columns. Otherwise, the relationship is transposed. - bias (bool) – If
False
, normalization is by(N - 1)
, where N is the number of observations given (unbiased estimate). IfTrue
, then normalization is byN
. - ddof (int) – If not
None
the default value implied by bias is overridden. Note thatddof=1
will return the unbiased estimate andddof=0
will return the simple average.
Returns: The covariance matrix of the input array.
Return type: See also