def ndarray_prod_initial(size, v, initial): a = Array(size, 'double') a.fill(v) return a.prod(initial=initial)
def ndarray_prod(size, v): a = Array(size, 'double') a.fill(v) return a.prod()