Convert an R vector to a gpuvec object.

as_gpuvec(card, x)

Arguments

card

A GPU card object; the return of card(). See ?card.

x

R vector.

Value

A gpuvec object.