Description Usage Arguments Value Author(s) See Also Examples
Create an identity matrix on the GPU size
1 |
n |
Integer specifying the dimensions of the matrix. |
val |
The constant number to put on the diagonal. 1 leads to an identity matrix |
type |
The type of matrix to return |
Returns and n x n matrix with zeros on the of diagonals.
Nathan Morris
as.gmatrix
and as.numeric
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.