Description Usage Arguments Details Value Examples
Load a numeric vector or matrix to device.
1 2 3 |
x |
Vector or Matrix (of type numeric) to load onto the device. Memory is automatically allocated prior to loading. |
Note that when the object returned by this function is garbage
collected, the device memory will be automatically freed. However, garbage
collection occurs "sometime in the future" after the object is destroyed,
so if you are allocating many data items on the device, you may wish to
expliticly call the Cuda class method dFree
to free it.
An XPtr to the device pointer. More precisely, an XPtr to a cuData object that encapsulates the device pointer along with the data's original dimensions so it can be properly formatted when subsequently retrieved.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.