Constructor for gpumat objects.

gpumat(card, nrows = 0, ncols = 0, type = "double")

Arguments

card

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

nrows, ncols

The dimensions of the matrix.

type

Storage type for the matrix. Should be one of 'int', 'float', or 'double'.

Value

A gpumat class object.

Details

Data is held in an external pointer.

See also