qr: QR Decomposition.

Description Usage Arguments Details Value Constraints Examples

Description

The QR decomposition involves factorizing a matrix into QMatrix and RMatrix.

Usage

1
qr(object, ...)

Arguments

object

is of class FLMatrix

...

any additional arguments

Details

qr replicates the equivalent qr() generic function.

Value

qr returns a list of five components:

qr

a FLMatrix with the same dimensions as object. The upper triangle contains the R of the decomposition and the lower triangle contains information on the Q of the decomposition (stored in compact form)

qraux

a FLVector of length ncol(object) which contains additional information on Q.

rank

the FLVector giving rank of object

QMatrix

the resulting Q Matrix stored in-database as FLMatrix

RMatrix

the resulting R Matrix stored in-database as FLMatrix

Constraints

Input can only be with maximum dimension limitations of (700 x 700).

Examples

1
2
3
4
5
6
flmatrix <- FLMatrix(getTestTableName("tblMatrixMulti"), 5,"MATRIX_ID","ROW_ID","COL_ID","CELL_VAL")
resultList <- qr(flmatrix)
resultList$qr
resultList$qraux
resultList$rank
resultList$pivot

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.