Last data update: 2014.03.03
|
R: Perform Matrix Transposed Cross-product with a GPU
gpuTcrossprod | R Documentation |
Perform Matrix Transposed Cross-product with a GPU
Description
Performs transposed matrix cross-product using a GPU. This function is merely a
couple of wrappers for the CUBLAS cublasSgemm function.
Usage
gpuTcrossprod(a, b)
Arguments
a |
a matrix of floating point values.
|
b |
a matrix of floating point values. If null, defaultsto
'a'.
|
Value
A matrix of single precision floating point values.
The matrix is the transposed cross-product of arguments 'a'
and 'b', i.e., a * t(b).
Examples
matA <- matrix(runif(2*3), 2, 3)
matB <- matrix(runif(4*3), 4, 3)
gpuTcrossprod(matA, matB)
Results
|