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

Function array_innerproduct

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

Source from the content-addressed store, hash-verified

2578}
2579
2580static PyObject *
2581array_innerproduct(PyObject *NPY_UNUSED(dummy), PyObject *const *args, Py_ssize_t len_args)
2582{
2583 PyObject *b0, *a0;
2584
2585 NPY_PREPARE_ARGPARSER;
2586 if (npy_parse_arguments("innerproduct", args, len_args, NULL,
2587 "", NULL, &a0,
2588 "", NULL, &b0,
2589 NULL, NULL, NULL) < 0) {
2590 return NULL;
2591 }
2592
2593 return PyArray_Return((PyArrayObject *)PyArray_InnerProduct(a0, b0));
2594}
2595
2596static PyObject *
2597array_matrixproduct(PyObject *NPY_UNUSED(dummy),

Callers

nothing calls this directly

Calls 2

PyArray_ReturnFunction · 0.85
PyArray_InnerProductFunction · 0.85

Tested by

no test coverage detected