Construct a vclVector of a class that inherits
from vclVector
. This class points to memory directly on
the GPU to avoid the cost of data transfer between host and device.
vclVector(data, length, type = NULL, ...)# S4 method for vector,missing
vclVector(data, length, type = NULL, ctx_id = NULL)
# S4 method for missing,ANY
vclVector(data, length, type = NULL, ctx_id = NULL)
# S4 method for numeric,numericOrInt
vclVector(data, length, type = NULL, ctx_id = NULL)
# S4 method for vclMatrix,missing
vclVector(
data,
length = NULL,
type = NULL,
ctx_id = NULL,
col = NULL,
row = NULL
)
A vclVector object
An object that is or can be converted to a
vector
A non-negative integer specifying the desired length.
A character string specifying the type of vclVector. Default is NULL where type is inherited from the source data type.
Additional method to pass to vclVector methods
An integer specifying the object's context
index of column to extract from vclMatrix
index of row to extract from vclMatrix
Charles Determan Jr.