powered by
Extract or replace the diagonal of a matrix
# S4 method for vclMatrix diag(x)# S4 method for vclMatrix,vclVector diag(x) <- value# S4 method for gpuMatrix diag(x)# S4 method for gpuMatrix,gpuVector diag(x) <- value
# S4 method for vclMatrix,vclVector diag(x) <- value
# S4 method for gpuMatrix diag(x)
# S4 method for gpuMatrix,gpuVector diag(x) <- value
A gpuRvector object of the matrix diagonal of x. The replacement form returns nothing as it replaces the diagonal of x.
gpuRvector
x
A gpuR matrix object
A vector object (gpuR)
Charles Determan Jr.
identity_matrix