Description Usage Arguments Details Value Note Author(s) See Also Examples
Create a GPU vector/matrix by copying from the input R vector
1 |
input |
R vector to be copied |
nrow |
the desired number of rows |
ncol |
the desired number of columns |
This function creates a vector/matrix in GPU by calling the CUDA cudamalloc function, and then copys from input R vector. The output of this function is a list consisting of the GPU pointer and its dimension.
If either one of nrow or ncol is not given, an one column matrix/vector is returned. This function returns row-major matrix.
a list consisting of
ptr: GPU pointer
m: number of rows
n: number of columns
output is a R external GPU pointer and can only be used in Rcublas functions
Yuan Li
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.