Function
prod
(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None)
Source from the content-addressed store, hash-verified
| 85 | |
| 86 | @derived_from(np) |
| 87 | def prod(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None): |
| 88 | if dtype is not None: |
| 89 | dt = dtype |
| 90 | else: |
| 91 | dt = getattr(np.ones((1,), dtype=a.dtype).prod(), "dtype", object) |
| 92 | return reduction( |
| 93 | a, |
| 94 | chunk.prod, |
| 95 | chunk.prod, |
| 96 | axis=axis, |
| 97 | keepdims=keepdims, |
| 98 | dtype=dt, |
| 99 | split_every=split_every, |
| 100 | out=out, |
| 101 | ) |
| 102 | |
| 103 | |
| 104 | @implements(np.min, np.amin) |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…