Source code for mathops.product

import numpy as np

[docs]def product(a): """ Return product of all elements from input array as floats. :param a: array a :type a: array :return: the product :rtype: float """ return np.prod(a)