Description Usage Arguments Details Value Author(s) See Also Examples
This function duplicates a gmatrix
or gvector
object on the specified device.
1 |
x |
object to duplicate |
dev |
device to duplicate the object on |
This function is very important because the gmatrix
and gvector
classes store only a pointer to an object on the GPU device. Thus, a line such as y<-x
will duplicate the pointer but not the actual data on the GPU. One should use instead y<-gdup(x)
. The gdup
function is also useful for copying the data to a different GPU device.
a gmatrix
or gvector
object.
Nathan Morris
To move data to a different device instead of copying it see device
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.