Return an array of ones with the same shape and type as a given array.
other : pycuda.gpuarray.GPUArray
Array whose shape and dtype are to be used to allocate a new array.
out : pycuda.gpuarray.GPUArray
Array of ones with the shape and dtype of other.