(shape, dtype, order='C', allocator=drv.mem_alloc)
return out
Return an array of the given shape and dtype filled with infs.

    Parameters
    ----------
    shape : tuple
        Array shape.
    dtype : data-type
        Data type for the array.
    order : {'C', 'F'}, optional
        Create array using row-major or column-major format.
    allocator : callable, optional
        Returns an object that represents the memory allocated for
        the requested array.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Array of infs with the given shape, dtype, and order.
Return an array of the given shape and dtype filled with infs.
Return an array of the given shape and dtype filled with infs .
def inf(shape, dtype, order='C', allocator=drv.mem_alloc):
    """
    Return an array of the given shape and dtype filled with infs.

    Parameters
    ----------
    shape : tuple
        Array shape.
    dtype : data-type
        Data type for the array.
    order : {'C', 'F'}, optional
        Create array using row-major or column-major format.
    allocator : callable, optional
        Returns an object that represents the memory allocated for
        the requested array.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Array of infs with the given shape, dtype, and order.
    """

    out = gpuarray.GPUArray(shape, dtype, allocator, order=order)
    i = np.array(np.inf, dtype)
    out.fill(i)
    return out
def inf ( shape , dtype , order = 'C' , allocator = drv . mem_alloc ) : out = gpuarray . GPUArray ( shape , dtype , allocator , order = order ) i = np . array ( np . inf , dtype ) out . fill ( i ) return out