Skip to content

Commit 6435dc6

Browse files
Merge branch 'correlate' into correlate_fft
2 parents 6eb94b2 + 943726f commit 6435dc6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dpnp/dpnp_iface_statistics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def corrcoef(x, y=None, rowvar=True, *, dtype=None):
444444

445445

446446
def _get_padding(a_size, v_size, mode):
447-
assert v_size > a_size
447+
assert v_size <= a_size
448448

449449
if mode == "valid":
450450
l_pad, r_pad = 0, 0
@@ -575,20 +575,20 @@ def correlate(a, v, mode="valid", method="auto"):
575575
is ``"valid"``, unlike :obj:`dpnp.convolve`, which uses ``"full"``.
576576
577577
Default: ``"valid"``.
578-
method : {'auto', 'direct', 'fft'}, optional
579-
`'direct'`: The correlation is determined directly from sums.
578+
method : {"auto", "direct", "fft"}, optional
579+
`"direct"`: The correlation is determined directly from sums.
580580
581-
`'fft'`: The Fourier Transform is used to perform the calculations.
581+
`"fft"`: The Fourier Transform is used to perform the calculations.
582582
This method is faster for long sequences but can have accuracy issues.
583583
584-
`'auto'`: Automatically chooses direct or Fourier method based on
584+
`"auto"`: Automatically chooses direct or Fourier method based on
585585
an estimate of which is faster.
586586
587587
Note: Use of the FFT convolution on input containing NAN or INF
588588
will lead to the entire output being NAN or INF.
589589
Use method='direct' when your input contains NAN or INF values.
590590
591-
Default: ``'auto'``.
591+
Default: ``"auto"``.
592592
593593
Notes
594594
-----

0 commit comments

Comments
 (0)