deepcopy {gpuR}R Documentation

Copy a "gpuR" object

Description

This is needed to make a duplicate of a gpuR object

Usage

deepcopy(object, ...)

## S4 method for signature 'gpuVector'
deepcopy(object)

## S4 method for signature 'vclMatrix'
deepcopy(object, source = FALSE)

## S4 method for signature 'vclVector'
deepcopy(object)

## S4 method for signature 'gpuMatrix'
deepcopy(object)

Arguments

object

A gpuR object

...

Additional arguments

source

A boolean indicating if source matrix should be copied (only relevant for 'block' and 'slice' objects).

Details

This is needed to make a duplicate of a gpuR object (i.e. gpuMatrix, gpuVector, vclMatrix, vclVector because the traditional syntax would only copy the pointer of the object.

Value

A gpuR object

A deep copy of the input gpuVector object.

A deep copy of the input vclMatrix object.

A deep copy of the input vclVector object.

A deep copy of the input gpuMatrix object.

Author(s)

Charles Determan Jr.

See Also

block


[Package gpuR version 2.0.6 Index]