copygpu: copygpu

Description Usage Arguments Value See Also Examples

View source: R/L1blas.R

Description

This function copies the vector x into the vector y by using CUDA cublas function cublasDcopy

Usage

1
copygpu(x, y)

Arguments

x

list consisting of R external GPU pointer and dimension

y

list consisting of R external GPU pointer and dimension

Value

copied vector/matrix

See Also

axpygpu

Examples

1
2
3
4
5
a <- 1:4
b <- 2:5
a_gpu <- creategpu(a)
b_gpu <- creategpu(b)
copygpu(a_gpu, b_gpu) 

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