(shape, dtype, allocator=drv.mem_alloc, order="C")
return result
Returns an array of the given shape and dtype filled with 0's.
Returns an array of the given shape and dtype filled with 0's.
Returns an array of the given shape and dtype filled with 0 s .
def zeros(shape, dtype, allocator=drv.mem_alloc, order="C"):
    """Returns an array of the given shape and dtype filled with 0's."""
    result = GPUArray(shape, dtype, allocator, order=order)
    zero = np.zeros((), dtype)
    result.fill(zero)
    return result
def zeros ( shape , dtype , allocator = drv . mem_alloc , order = "C" ) : result = GPUArray ( shape , dtype , allocator , order = order ) zero = np . zeros ( ( ) , dtype ) result . fill ( zero ) return result