vclMatrix-class | R Documentation |
This is the 'mother' class for all vclMatrix objects. These objects are pointers to viennacl matrices directly on the GPU. This will avoid the overhead of passing data back and forth between the host and device.
As such, any changes made to normal R 'copies' (e.g. A <- B) will be propogated to the parent object.
There are multiple child classes that correspond
to the particular data type contained. These include
ivclMatrix
, fvclMatrix
, and
dvclMatrix
corresponding to integer, float, and
double data types respectively.
An object of class 'vclMatrix' with the specified slots.
Common to all vclMatrix objects in the package
address
:Pointer to data matrix
.context_index
:Integer index of OpenCL contexts
.platform_index
:Integer index of OpenCL platforms
.platform
:Name of OpenCL platform
.device_index
:Integer index of active device
.device
:Name of active device
R does not contain a native float type. As such,
the matrix data within a fvclMatrix-class
will be represented as double but downcast when any
vclMatrix methods are used.
May also remove the type slot
Charles Determan Jr.
ivclMatrix-class
,
fvclMatrix-class
,
dvclMatrix-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.