This doesn't create a copy, it provides a child class that
points to a contiguous submatrix of a gpuMatrix
or
vclMatrix
. Non-contiguous blocks are currently not supported.
block(object, rowStart, rowEnd, colStart, colEnd)# S4 method for vclMatrix,integer,integer,integer,integer
block(object, rowStart, rowEnd, colStart, colEnd)
# S4 method for gpuMatrix,integer,integer,integer,integer
block(object, rowStart, rowEnd, colStart, colEnd)
A block of the input gpuMatrixBlock
or vclMatrixBlock
object.
A gpuMatrix
or vclMatrix
object
An integer indicating the first row of block
An integer indicating the last row of block
An integer indicating the first column of block
An integer indicating the last column of block
Charles Determan Jr.
This function allows a user to create a gpuR matrix object that references a continuous subset of columns and rows of another gpuR matrix object without a copy.
NOTE - this means that altering values in a matrix block object will alter values in the source matrix.