Source

pypy / pypy / module / micronumpy / support.py

Full commit
1
2
3
4
5
6
7
8
9
from pypy.rlib import jit


@jit.unroll_safe
def product(s):
    i = 1
    for x in s:
        i *= x
    return i