gpuMatrix-class {gpuR} | R Documentation |
gpuMatrix Class
Description
This is the 'mother' class for all gpuMatrix objects. It is essentially a wrapper for a basic R matrix (possibly to be improved). All other gpuMatrix classes inherit from this class but there are no current circumstances where this class is used directly.
There are multiple child classes that correspond
to the particular data type contained. These include
igpuMatrix
, fgpuMatrix
, and
dgpuMatrix
corresponding to integer, float, and
double data types respectively.
Value
An object of class 'gpuMatrix' with the specified slots.
Slots
Common to all gpuMatrix 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
Note
R does not contain a native float type. As such,
the matrix data within a fgpuMatrix-class
will be represented as double but downcast when any
gpuMatrix methods are used.
May also remove the type slot
Author(s)
Charles Determan Jr.
See Also
igpuMatrix-class
,
fgpuMatrix-class
,
dgpuMatrix-class