MCPcopy Create free account
hub / github.com/numpy/numpy / array_correlate

Function array_correlate

numpy/core/src/multiarray/multiarraymodule.c:3117–3133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3115}
3116
3117static PyObject *
3118array_correlate(PyObject *NPY_UNUSED(dummy),
3119 PyObject *const *args, Py_ssize_t len_args, PyObject *kwnames)
3120{
3121 PyObject *shape, *a0;
3122 int mode = 0;
3123 NPY_PREPARE_ARGPARSER;
3124
3125 if (npy_parse_arguments("correlate", args, len_args, kwnames,
3126 "a", NULL, &a0,
3127 "v", NULL, &shape,
3128 "|mode", &PyArray_CorrelatemodeConverter, &mode,
3129 NULL, NULL, NULL) < 0) {
3130 return NULL;
3131 }
3132 return PyArray_Correlate(a0, shape, mode);
3133}
3134
3135static PyObject*
3136array_correlate2(PyObject *NPY_UNUSED(dummy),

Callers

nothing calls this directly

Calls 1

PyArray_CorrelateFunction · 0.85

Tested by

no test coverage detected