Convert an R vector to a cpumat object.

as_cpuvec(x, copy = TRUE)

Arguments

x

R vector.

copy

Should the R data be copied? If FALSE, be careful!

Value

A cpuvec object.