| 2594 | } |
| 2595 | |
| 2596 | static PyObject * |
| 2597 | array_matrixproduct(PyObject *NPY_UNUSED(dummy), |
| 2598 | PyObject *const *args, Py_ssize_t len_args, PyObject *kwnames) |
| 2599 | { |
| 2600 | PyObject *v, *a, *o = NULL; |
| 2601 | PyArrayObject *ret; |
| 2602 | |
| 2603 | NPY_PREPARE_ARGPARSER; |
| 2604 | if (npy_parse_arguments("dot", args, len_args, kwnames, |
| 2605 | "a", NULL, &a, |
| 2606 | "b", NULL, &v, |
| 2607 | "|out", NULL, &o, |
| 2608 | NULL, NULL, NULL) < 0) { |
| 2609 | return NULL; |
| 2610 | } |
| 2611 | if (o != NULL) { |
| 2612 | if (o == Py_None) { |
| 2613 | o = NULL; |
| 2614 | } |
| 2615 | else if (!PyArray_Check(o)) { |
| 2616 | PyErr_SetString(PyExc_TypeError, "'out' must be an array"); |
| 2617 | return NULL; |
| 2618 | } |
| 2619 | } |
| 2620 | ret = (PyArrayObject *)PyArray_MatrixProduct2(a, v, (PyArrayObject *)o); |
| 2621 | return PyArray_Return(ret); |
| 2622 | } |
| 2623 | |
| 2624 | |
| 2625 | static PyObject * |
nothing calls this directly
no test coverage detected