Description Usage Arguments Value Author(s) See Also Examples
This function is used to convert the type (i.e. "double"
, "single"
, "integer"
or "logical"
) of a gmatrix
or gvector
object.
1 | convertType(x, to, dup = TRUE)
|
x |
A GPU object of class |
to |
The type to convert the object to. There are three different ways to specify this. One may use the |
dup |
This may be set to 'FALSE' to avoid duplicating |
Returns the x after converting it to a new type.
Nathan Morris
1 2 3 | x=gseq(1,10)
y=convertType(x,'d')
type(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.