gpuMatMult {gputools} | R Documentation |
Performs matrix multiplication using a GPU. This function is merely a couple of wrappers for the CUBLAS cublasSgemm function.
gpuMatMult(a, b)
a |
a matrix of floating point values. |
b |
a matrix of floating point values. |
A matrix of single precision floating point values. The matrix is just the product of arguments 'a' and 'b'.
matA <- matrix(runif(2*3), 2, 3) matB <- matrix(runif(3*4), 3, 4) gpuMatMult(matA, matB)