diag-methods: gpuR Matrix Diagonals

Description Usage Arguments Value Note Author(s) See Also

Description

Extract or replace the diagonal of a matrix

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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

Arguments

x

A gpuR matrix object

value

A vector object (gpuR)

Value

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

Note

If an identity matrix is desired, please see identity_matrix.

Author(s)

Charles Determan Jr.

See Also

identity_matrix


cdeterman/gpuR documentation built on July 13, 2019, 3:15 a.m.