This doesn't create a copy, it provides a child class that
points to a contiguous subvector of a gpuVector
or
vclVector
. Non-contiguous slices are currently not supported.
slice(object, start, end)# S4 method for gpuVector,integer,integer
slice(object, start, end)
# S4 method for vclVector,integer,integer
slice(object, start, end)
A gpuVectorSlice
or vclVectorSlice
object.
A gpuVector
or vclVector
object
An integer indicating the start of slice
An integer indicating the end of slice
Charles Determan Jr.
This function allows a user to create a gpuR vector object that references a continuous subset of columns and rows of another gpuR vector object without a copy.
NOTE - this means that altering values in a vector slice object will alter values in the source vector.