Convert an R matrix to a gpumat object.

as_gpumat(card, x)

Arguments

card

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

x

R matrix.

Value

A gpumat object.