Learn R Programming

gpuR (version 2.0.6)

deepcopy: Copy a "gpuR" object

Description

This is needed to make a duplicate of a gpuR object

Usage

deepcopy(object, ...)

# S4 method for gpuVector deepcopy(object)

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

# S4 method for vclVector deepcopy(object)

# S4 method for gpuMatrix deepcopy(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.

Arguments

object

A gpuR object

...

Additional arguments

source

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

Author

Charles Determan Jr.

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.

See Also

block