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 April 14, 2020, 7:08 p.m.