cpu2cpu: cpu2cpu

Description Usage Arguments Value Examples

View source: R/helpers.r

Description

Copy the data in one CPU object to another. The objects must be of the same class (e.g. cpuvec/cpuvec and cpumat/cpumat), but they can be of different fundamental types (e.g. float/double).

Usage

1
cpu2cpu(cpu_in, cpu_out)

Arguments

cpu_in

Input.

cpu_out

Ouput.

Value

Returns NULL.

Examples

1
2
3
4
5
6
7
8
9
library(fmlr)
x = cpumat(3, 2)
x$fill_linspace(1, 6)

y = cpumat(type="float")
cpu2cpu(x, y)

y$info()
y

fml-fam/fmlr documentation built on Jan. 16, 2022, 9:27 a.m.