vclVector-methods: Construct a vclVector

Description Usage Arguments Value Author(s)

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
vclVector(data, length, type = NULL, ...)

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

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

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

## S4 method for signature 'vclMatrix,missing'
vclVector(data, length = NULL, type = NULL,
  ctx_id = NULL, col = NULL, row = 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 vclVector. Default is NULL where type is inherited from the source data type.

...

Additional method to pass to vclVector methods

ctx_id

An integer specifying the object's context

col

index of column to extract from vclMatrix

row

index of row to extract from vclMatrix

Value

A vclVector object

Author(s)

Charles Determan Jr.


gpuR documentation built on Nov. 17, 2017, 8:07 a.m.