tr: Trace of the Matrix

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/tr.R

Description

Compute the trace of the square matrix.

Usage

1
tr(X)

Arguments

X

a square matrix.

Value

A numeric value.

Author(s)

Kevin

References

John J, Williams E (1987). Cyclic and computer generated Designs. Second edition. Chapman & Hall.

See Also

diag

Examples

1
2
m = matrix(1, nrow = 10, ncol = 10)
tr(m)   

infoDecompuTE documentation built on May 29, 2018, 9:05 a.m.