Learn R Programming

gpuR (version 2.0.3)

as.vclVector: Convert object to a vclVector

Description

Construct a vclVector of a class that inherits from vclVector

Usage

as.vclVector(object, type = NULL, ...)

# S4 method for vector as.vclVector(object, type = NULL)

# S4 method for vclMatrix as.vclVector(object, type = NULL, shared = FALSE)

Arguments

object

An object that is or can be converted to a vector object

type

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

...

Additional arguments to as.vclVector methods

shared

Logical indicating if memory should be shared with x

Value

A vclVector object