gpuMatrix {gpuR} | R Documentation |
Construct a gpuMatrix
Description
Construct a gpuMatrix of a class that inherits
from gpuMatrix
Usage
gpuMatrix(data = NA, nrow = NA, ncol = NA, type = NULL, ...)
## S4 method for signature 'matrix'
gpuMatrix(data, type = NULL, ctx_id = NULL)
## S4 method for signature 'missing'
gpuMatrix(data, nrow = NA, ncol = NA, type = NULL, ctx_id = NULL)
## S4 method for signature 'numeric'
gpuMatrix(data, nrow, ncol, type = NULL, ctx_id = NULL)
## S4 method for signature 'integer'
gpuMatrix(data, nrow, ncol, type = NULL, ctx_id = NULL)
Arguments
data |
An object that is or can be converted to a
|
nrow |
An integer specifying the number of rows |
ncol |
An integer specifying the number of columns |
type |
A character string specifying the type of gpuMatrix. Default is NULL where type is inherited from the source data type. |
... |
Additional method to pass to gpuMatrix methods |
ctx_id |
An integer specifying the object's context |
Value
A gpuMatrix object
Author(s)
Charles Determan Jr.
[Package gpuR version 2.0.6 Index]