Construct a gpuMatrix of a class that inherits
from gpuMatrix
gpuMatrix(data = NA, nrow = NA, ncol = NA, type = NULL, ...)# S4 method for matrix
gpuMatrix(data, type = NULL, ctx_id = NULL)
# S4 method for missing
gpuMatrix(data, nrow = NA, ncol = NA, type = NULL, ctx_id = NULL)
# S4 method for numeric
gpuMatrix(data, nrow, ncol, type = NULL, ctx_id = NULL)
# S4 method for integer
gpuMatrix(data, nrow, ncol, type = NULL, ctx_id = NULL)
A gpuMatrix object
An object that is or can be converted to a
matrix
object
An integer specifying the number of rows
An integer specifying the number of columns
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
An integer specifying the object's context
Charles Determan Jr.