diag,vclMatrix-method | R Documentation |
Extract or replace the diagonal of a matrix
## S4 method for signature 'vclMatrix'
diag(x)
## S4 replacement method for signature 'vclMatrix,vclVector'
diag(x) <- value
## S4 method for signature 'gpuMatrix'
diag(x)
## S4 replacement method for signature 'gpuMatrix,gpuVector'
diag(x) <- value
x |
A gpuR matrix object |
value |
A vector object (gpuR) |
A gpuRvector
object of the matrix diagonal of x
. The
replacement form returns nothing as it replaces the diagonal of x
.
If an identity matrix is desired, please see identity_matrix.
Charles Determan Jr.
identity_matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.