block | R Documentation |
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 signature 'vclMatrix,integer,integer,integer,integer'
block(object, rowStart, rowEnd, colStart, colEnd)
## S4 method for signature 'gpuMatrix,integer,integer,integer,integer'
block(object, rowStart, rowEnd, colStart, colEnd)
object |
A |
rowStart |
An integer indicating the first row of block |
rowEnd |
An integer indicating the last row of block |
colStart |
An integer indicating the first column of block |
colEnd |
An integer indicating the last column of block |
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.
A block of the input gpuMatrixBlock
or vclMatrixBlock
object.
Charles Determan Jr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.