def prod(a, axis=None): '''Product of input''' if axis == None: return _stats.product(a) else: return _stats.product(a, axis)