return_nocpy {gpuMagic} | R 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)

[Package gpuMagic version 1.10.0 Index]