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

Function PyArray_MultiplyIntList

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

NUMPY_API * Multiply a List of ints */

Source from the content-addressed store, hash-verified

166 * Multiply a List of ints
167 */
168NPY_NO_EXPORT int
169PyArray_MultiplyIntList(int const *l1, int n)
170{
171 int s = 1;
172
173 while (n--) {
174 s *= (*l1++);
175 }
176 return s;
177}
178
179/*NUMPY_API
180 * Multiply a List

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected