no_copy_method: No copy method

return_nocpyR Documentation

No copy method

Description

Doing some opration without copying memory

Usage

return_nocpy(x)

t_nocpy(x)

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

x=matrix(0)
#return_nocpy(x)
#x=t_nocpy(x)

Jiefei-Wang/gpuMagic documentation built on March 27, 2022, 5:23 a.m.