MCPcopy Create free account
hub / github.com/ml-explore/mlx / prod

Function prod

mlx/ops.cpp:2277–2281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2275}
2276
2277array prod(const array& a, bool keepdims, StreamOrDevice s /* = {}*/) {
2278 std::vector<int> axes(a.ndim());
2279 std::iota(axes.begin(), axes.end(), 0);
2280 return prod(a, axes, keepdims, s);
2281}
2282
2283array prod(
2284 const array& a,

Callers

nothing calls this directly

Calls 9

compute_reduce_shapeFunction · 0.85
issubdtypeFunction · 0.85
to_streamFunction · 0.85
squeezeFunction · 0.85
arrayFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected