skcuda.misc.add

skcuda.misc.add(x_gpu, y_gpu)[source]

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:y_gpu (x_gpu,) – The arrays to be added.
Returns:out – Equivalent to x_gpu.get() + y_gpu.get().
Return type:pycuda.gpuarray.GPUArray

Notes

The out and stream options are not supported because GPUArray.__add__ doesn’t provide them.