divideGPU: dividegpu

Description Usage Arguments Value See Also Examples

Description

This function computes the element-wise division of two given vectors/matrices by using self-defined CUDA function

Usage

1
dividegpu(x, y)

Arguments

x

list consisting of R external GPU pointer and dimension

y

list consisting of R external GPU pointer and dimension

Value

element-wise division of vectors/matrices (x / y), a list consisting of

See Also

multiplygpu

Examples

1
2
3
4
5
6
a <- 1:4
b <- 2:5
a_gpu <- creategpu(a)
b_gpu <- creategpu(b)
dividegpu(a_gpu, b_gpu) -> c_gpu
gathergpu(c_gpu)

yuanli22/RCUDA documentation built on May 4, 2019, 6:35 p.m.