vectincregpu: vectincregpu

Description Usage Arguments Value See Also Examples

View source: R/element_wise_math.R

Description

This function computes the constant increment of given vector/matrix by using self-defined CUDA function

Usage

1
vectincregpu(input, alpha = 1)

Arguments

input

list consisting of R external GPU pointer and dimension

alpha

increment factor

Value

powered vector/matrix, a list consisting of

See Also

sqrtgpu

Examples

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

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