gpuR-slice: Vector Slices

Description Usage Arguments Details Value Author(s)

Description

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.

Usage

1
2
3
4
5
6
7
slice(object, start, end)

## S4 method for signature 'gpuVector,integer,integer'
slice(object, start, end)

## S4 method for signature 'vclVector,integer,integer'
slice(object, start, end)

Arguments

object

A gpuVector or vclVector object

start

An integer indicating the start of slice

end

An integer indicating the end of slice

Details

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.

Value

A gpuVectorSlice or vclVectorSlice object

Author(s)

Charles Determan Jr.


cdeterman/gpuR documentation built on July 13, 2019, 3:15 a.m.