bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _peak_finding / _arg_peaks_as_expected
function
scipy.signal._peak_finding:_arg_peaks_as_expected
source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_peak_finding.py:272
Signature
def _arg_peaks_as_expected(value)Summary
Ensure argument peaks is a 1-D C-contiguous array of dtype('intp').
Extended Summary
Used in peak_prominences and peak_widths to make peaks compatible with the signature of the wrapped Cython functions.
Returns
value: ndarrayA 1-D C-contiguous array with dtype('intp').
Aliases
scipy.signal._peak_finding._arg_peaks_as_expected