R: Extract the R, D1, D2 matrices from a gsvd object

gsvd.Auxiliaries {geigen} | R Documentation

## Extract the R, D1, D2 matrices from a gsvd object

### Description

Returns a component of the object as a matrix

### Usage

    gsvd.R(z)
    gsvd.oR(z)
    gsvd.D1(z)
    gsvd.D2(z)

### Arguments

`z` | an object created with `gsvd`

### Value

`gsvd.R` returns the `R` matrix implied by the GSVD.

`gsvd.oR` returns the matrix [0 R] implied by the GSVD.

`gsvd.D1` returns the matrix `D1` implied by the GSVD.

`gsvd.D2` returns the matrix `D2` implied by the GSVD.

### See Also

`gsvd`

### Examples

    A <- matrix(c(1,2,3,3,2,1,4,5,6,7,8,8), nrow=2, byrow=TRUE)
    B <- matrix(1:18,byrow=TRUE, ncol=6)
    A
    B

    z <- gsvd(A,B)
    z

    R <- gsvd.R(z)
    oR <- gsvd.oR(z)
    D1 <- gsvd.D1(z); D2 <- gsvd.D2(z)
    R;oR
    D1;D2

[Package geigen version 2.3 Index]