Constructor for cpuvec objects.

cpuvec(size = 0, type = "double")

Arguments

size

Length of the vector.

type

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

Value

A cpuvec class object.

Details

Data is held in an external pointer.

See also