amdMatrix-methods: Construct an amdMatrix

Description Usage Arguments Value Author(s)

Description

Construct a amdMatrix of a class that inherits from amdMatrix

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
amdMatrix(data = NA, nrow = NA, ncol = NA, type = NULL, ...)

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

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

## S4 method for signature 'gpuMatrix'
amdMatrix(data, type = NULL)

## S4 method for signature 'numeric'
amdMatrix(data, nrow, ncol, type = NULL, ctx_id = 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 amdMatrix. Default is NULL where type is inherited from the source data type.

...

Additional method to pass to amdMatrix methods

Value

A amdMatrix object

Author(s)

Charles Determan Jr.


gpuRcore/gpuRclblas documentation built on May 17, 2019, 8 a.m.