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

Function PyArray_MultiplyList

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

NUMPY_API * Multiply a List */

Source from the content-addressed store, hash-verified

180 * Multiply a List
181 */
182NPY_NO_EXPORT npy_intp
183PyArray_MultiplyList(npy_intp const *l1, int n)
184{
185 npy_intp s = 1;
186
187 while (n--) {
188 s *= (*l1++);
189 }
190 return s;
191}
192
193/*NUMPY_API
194 * Multiply a List of Non-negative numbers with over-flow detection.

Calls

no outgoing calls

Tested by

no test coverage detected