(a)
return out
Return an array of ones with the same shape and type as a given array.

    Parameters
    ----------
    a : array_like
        The shape and data type of `a` determine the corresponding
        attributes of the returned array.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Array of ones with the shape, dtype, and strides of `other`.
Return an array of ones with the same shape and type as a given array.
Return an array of ones with the same shape and type as a given array .
def ones_like(a):
    """
    Return an array of ones with the same shape and type as a given array.

    Parameters
    ----------
    a : array_like
        The shape and data type of `a` determine the corresponding
        attributes of the returned array.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Array of ones with the shape, dtype, and strides of `other`.
    """

    out = gpuarray.GPUArray(a.shape, a.dtype,
                            a.allocator, strides=a.strides)
    o = np.ones((), a.dtype)
    out.fill(o)
    return out
def ones_like ( a ) : out = gpuarray . GPUArray ( a . shape , a . dtype , a . allocator , strides = a . strides ) o = np . ones ( ( ) , a . dtype ) out . fill ( o ) return out