Learn R Programming

gmatrix (version 0.3)

gnamestrip: Strip a GPU object of it names, or row/colnames.

Description

Returns a GPU object without any names or row/colnames. This may speed up certian operations.

Usage

gnamestrip(x, dup = TRUE)

Arguments

x
input object to be stripped of names
dup
if FALSE then don't duplicate x on the GPU. Return object will point to the same GPU memory as the original object.

Value

Returns the original object with no names.

See Also

names, colnames and dimnames

Examples

Run this code
x=gseq(1,2)
names(x)=c("bill","joe")
gnamestrip(x)

Run the code above in your browser using DataLab