gpuVector {gpuR}R Documentation

Construct a gpuVector

Description

Construct a gpuVector of a class that inherits from gpuVector

Usage

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

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

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

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

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

Value

A gpuVector object

Author(s)

Charles Determan Jr.


[Package gpuR version 2.0.6 Index]