Learn R Programming

gpuR (version 2.0.6)

diag,vclMatrix-method: gpuR Matrix Diagonals

Description

Extract or replace the diagonal of a matrix

Usage

# 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

Value

A gpuRvector object of the matrix diagonal of x. The replacement form returns nothing as it replaces the diagonal of x.

Arguments

x

A gpuR matrix object

value

A vector object (gpuR)

Author

Charles Determan Jr.

See Also

identity_matrix