as.vector.gpuMatrix: Convert the gpuMatrix object into a vector

View source: R/gpuMatix.R

as.vector.gpuMatrixR Documentation

Convert the gpuMatrix object into a vector

Description

The function will convert the gpuMatrix object into a vector, if you have run any GPU functions on the gpuMatrix object, please call download(x) to synchronize the data before calling this function.

Usage

## S3 method for class 'gpuMatrix'
as.vector(x, mode = NULL)

Arguments

x

an gpuMatrix object

mode

This argument is only for compatibility. It does not take any effect.

Value

A vector


Jiefei-Wang/gpuMagic documentation built on March 27, 2022, 5:23 a.m.