cupy.corrcoef#

cupy.corrcoef(a, y=None, rowvar=True, bias=None, ddof=None, *, dtype=None)[source]#

Returns the Pearson product-moment correlation coefficients of an array.

Parameters:
  • a (cupy.ndarray) – Array to compute the Pearson product-moment correlation coefficients.

  • 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 (None) – Has no effect, do not use.

  • ddof (None) – Has no effect, do not use.

  • dtype – Data type specifier. By default, the return data-type will have at least numpy.float64 precision.

Returns:

The Pearson product-moment correlation coefficients of the input array.

Return type:

cupy.ndarray

See also

numpy.corrcoef()