Create a matrix of 1.
B = gpuOnes(A)
B = gpuOnes(x, y)
Can be :
Pointer on the vector stored in device memory (GPU).
Pointer on the vector stored in host memory (CPU).
Scalars used to size the output matrix.
Output matrix stored in device memory.
gpuOnes
is the GPU implementation of Scilab ones function.
It create a matrix of size x by y or of the same size as A and initializes it by 1.