Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _prod
Function
_prod
numpy/core/_internal.py:838–842 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
836
return
dtype(field_spec)
837
838
def
_prod(a):
839
p = 1
840
for
x in a:
841
p *= x
842
return
p
843
844
def
_gcd(a, b):
845
""
"Calculate the greatest common divisor of a and b"
""
Callers
1
__dtype_from_pep3118
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected