Construct a vclMatrix

Share:

Description

Construct a vclMatrix of a class that inherits from vclMatrix. 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
vclMatrix(data = NA, nrow = NA, ncol = NA, type = NULL, ...)

## S4 method for signature 'matrix'
vclMatrix(data, type = NULL)

## S4 method for signature 'missing'
vclMatrix(data, nrow = NA, ncol = NA, type = NULL)

## S4 method for signature 'numeric'
vclMatrix(data, nrow, ncol, type = NULL)

## S4 method for signature 'integer'
vclMatrix(data, nrow, ncol, type = NULL)

Arguments

data

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

nrow

An integer specifying the number of rows

ncol

An integer specifying the number of columns

type

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

...

Additional method to pass to vclMatrix methods

Value

A vclMatrix object

Author(s)

Charles Determan Jr.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.