clFloat is a constructor of a single-precision vector - an
object of the class "clFloat". The purpose of this type is to serve as a pass-though for OpenCL calls
that involve single precision vectors such that they do not need to be
converted to/from double precision and thus incurring the corresponding
penalty. This type is not designed to be a full numeric vector
replacement and thus opeartion such as arithmetics are intentionally
not implemented.
The current internal representation is a raw vector of the
machine-specific representation of the C float type but this
may change in the future so no code should rely on it. It also implies
that serialization is only compatible for machines of the same
endianness.
as.clFloat coerces objects into single-precision vectors
essentially by calling clFloat(as.numeric(x)).
is.clFloat returns TRUE the x is an object of the
class clFloat
Some most basic methods such as length or print are
implemented as well as basic coersion methods.