no_copy_method: No copy method

Description Usage Arguments Details Value Examples

Description

Doing some opration without copying memory

Usage

1
2
3

Arguments

x

an object

Details

return_nocpy: The usage of the return_nocpy is same as return. This feature is for openCL code only, if it is called in R, the function return() will be called instead

t_nocpy: The function transposes x without allocating the memory. It only works for the openCL code, if it is called in R, the function t() will be called instead

Value

return_nocpy: No return value

t_nocpy: the transpose of x

Examples

1
2
3
x=matrix(0)
#return_nocpy(x)
#x=t_nocpy(x)

gpuMagic documentation built on Nov. 8, 2020, 5:15 p.m.