예제 #1
0
def ndarray_prod_initial(size, v, initial):
    a = Array(size, 'double')
    a.fill(v)
    return a.prod(initial=initial)
예제 #2
0
def ndarray_prod(size, v):
    a = Array(size, 'double')
    a.fill(v)
    return a.prod()