skcuda.misc.divide

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

Divides two scalars, vectors, or matrices with broadcasting.

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 divided.
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.__div__ doesn’t provide them.