as_fmlmat: as_fmlmat

Description Usage Arguments Details Value Examples

View source: R/as_fmlmat.r

Description

Convert an fmlr matrix object (i.e. one of class 'cpumat', 'gpumat', or 'mpimat') to an 'fmlmat' object.

Usage

1

Arguments

x

An object of class 'cpumat', 'gpumat', or 'mpimat'.

Details

The conversion does not produce a copy of the data. It is merely a shallow S4 wrapper around the fmlr object.

Value

An fmlmat class object.

Examples

1
2
3
4
5
6
7
suppressMessages(library(craze))

x = matrix(as.double(1:6), 3)
x_cpumat = fmlr::as_cpumat(x, copy=FALSE)

x_fml = craze::as_fmlmat(x_cpumat)
x_fml

fml-fam/craze documentation built on June 6, 2020, 2:05 p.m.