subsetGPU: subsetgpu

Description Usage Arguments Value See Also Examples

Description

This function returns the specified subset of given GPU vector/matrix by using self-defined CUDA function

Usage

1
subsetgpu(input, index)

Arguments

input

list consisting of R external GPU pointer and dimension

index

index of the vector/matrix subset

Value

subset of the given vector/matrix, a list consisting of

See Also

creategpu

Examples

1
2
3
4
a <- 1:4
a_gpu <- creategpu(a)
subsetgpu(a_gpu,c(1, 2))->b_gpu
gathergpu(b_gpu)

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