Last data update: 2014.03.03
|
R: Perform Matrix Multiplication with a GPU
gpuMatMult | R Documentation |
Perform Matrix Multiplication with a GPU
Description
Performs matrix multiplication using a GPU. This function is merely a
wrapper for the CUBLAS cublasDgemm function.
Usage
gpuMatMult(a, b)
Arguments
a |
a numeric matrix.
|
b |
a numeric matrix.
|
Value
A numeric matrix.
The matrix is just the product of arguments 'a' and 'b'.
Examples
matA <- matrix(runif(2*3), 2, 3)
matB <- matrix(runif(3*4), 3, 4)
gpuMatMult(matA, matB)
Results
|