- pymc.math.prod(input, axis=None, dtype=None, keepdims=False, acc_dtype=None, no_zeros_in_input=False)[source]#
Computes the product along the given axis(es) of a tensor input.
When axis is None (the default value), the product is performed over the flattened tensor.
For full documentation see
- keepdims: bool
If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original tensor.