Learn R Programming

gpuR (version 2.0.6)

gpuVector: Construct a gpuVector

Description

Construct a gpuVector of a class that inherits from gpuVector

Usage

gpuVector(data, length, type = NULL, ...)

# S4 method for vector,missing gpuVector(data, type = NULL, ctx_id = NULL)

# S4 method for missingOrNULL,ANY gpuVector(data, length, type = NULL, ctx_id = NULL)

# S4 method for numeric,numericOrInt gpuVector(data, length, type = NULL, ctx_id = NULL)

Value

A gpuVector object

Arguments

data

An object that is or can be converted to a vector

length

A non-negative integer specifying the desired length.

type

A character string specifying the type of gpuVector. Default is NULL where type is inherited from the source data type.

...

Additional method to pass to gpuVector methods

ctx_id

An integer specifying the object's context

Author

Charles Determan Jr.