示例#1
0
def ndarray_mean_empty_float(size):
    a = Array(size, 'float64')
    return a.mean()
示例#2
0
def ndarray_mean_empty_int(size):
    a = Array(size, 'int32')
    return a.mean()
示例#3
0
def ndarray_mean(size, v):
    a = Array(size, 'double')
    a.fill(v)
    return a.mean()