(x_gpu, y_gpu)
return binaryop_2d("+", operator.add, True, x_gpu, y_gpu)
Adds two scalars, vectors, or matrices.

    The numpy broadcasting rules apply so this would yield the same result
    as `x_gpu.get()` + `y_gpu.get()` in host code.

    Parameters
    ----------
    x_gpu, y_gpu : pycuda.gpuarray.GPUArray
        The arrays to be added.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Equivalent to `x_gpu.get()` + `y_gpu.get()`.

    Notes
    -----
    The `out` and `stream` options are not supported because `GPUArray.__add__`
    doesn't provide them.
Adds two scalars, vectors, or matrices.
Adds two scalars vectors or matrices .
def add(x_gpu, y_gpu):
    """
    Adds two scalars, vectors, or matrices.

    The numpy broadcasting rules apply so this would yield the same result
    as `x_gpu.get()` + `y_gpu.get()` in host code.

    Parameters
    ----------
    x_gpu, y_gpu : pycuda.gpuarray.GPUArray
        The arrays to be added.

    Returns
    -------
    out : pycuda.gpuarray.GPUArray
        Equivalent to `x_gpu.get()` + `y_gpu.get()`.

    Notes
    -----
    The `out` and `stream` options are not supported because `GPUArray.__add__`
    doesn't provide them.
    """

    return binaryop_2d("+", operator.add, True, x_gpu, y_gpu)
def add ( x_gpu , y_gpu ) : return binaryop_2d ( "+" , operator . add , True , x_gpu , y_gpu )