View source: R/methods-vclMatrix.R
identity_matrix | R Documentation |
Creates an identity matrix directly on the current device (e.g. GPU)
identity_matrix(x, type = NULL)
x |
A numeric value indicating the order of the identity matrix |
type |
A character string specifying the type of gpuMatrix. Default
is derived from |
A vclMatrix
object
This function was only created for vclMatrix
objects as
the copy from CPU to gpuMatrix
is trivial using the base
diag function.
Charles Determan Jr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.