Description Usage Arguments Value See Also Examples
This function computes the element-wise subtraction of two given vectors/matrices by using CUDA cublas function cublasDgeam
| 1 | subtractgpu(x, y)
 | 
| x | list consisting of R external GPU pointer and dimension | 
| y | list consisting of R external GPU pointer and dimension | 
element-wise subtraction of vectors or matrices (x - y), a list consisting of
ptr: GPU pointer
m: number of rows
n: number of columns
| 1 2 3 4 5 6 | a <- 1:4
b <- 2:5
a_gpu <- creategpu(a)
b_gpu <- creategpu(b)
subtractgpu(a_gpu, b_gpu) -> c_gpu
gathergpu(c_gpu)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.