tr: Matrix Trace.

Description Usage Arguments Details Value Constraints See Also Examples

Description

tr computes the trace of FLMatrix objects.

Usage

1
tr(object, ...)

Arguments

object

an object of class FLMatrix

...

any additional arguments

Details

tr computes the trace of input FLMatrix object, stores the result in-database and returns R vector object

Value

tr returns R Vector object of size 1 which replicates the equivalent R output.

Constraints

Input matrix can only be square matrix with maximum dimension limitations of (1000 x 1000).

See Also

tr for corresponding R function reference

Examples

1
2
3
flmatrix <- FLMatrix(getTestTableName("tblMatrixMulti"), 5,"MATRIX_ID","ROW_ID",
                      "COL_ID","CELL_VAL",dims= c(5,5))
resultFLVector <- tr(flmatrix)

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