cupy.corrcoef#

cupy.corrcoef(a, y=None, rowvar=True, bias=None, ddof=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.

Returns

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

Return type

cupy.ndarray

See also

numpy.corrcoef()