def ndarray_max_empty(size): a = Array(size, 'int8') return a.max()
def ndarray_max_initial(size, v, initial): a = Array(size, 'double') a.fill(v) return a.max(initial=initial)
def ndarray_max(size, v): a = Array(size, 'double') a.fill(v) return a.max()