tr: Trace

Description Usage Arguments Value Author(s) Examples

View source: R/tr.R

Description

Computes the trace of a matrix.

Usage

1
 tr(a)

Arguments

a

Matrix

Value

t

Trace of A

Author(s)

Maria Antonietta Del Ferraro [email protected]
Henk A.L. Kiers [email protected]
Paolo Giordani [email protected]

Examples

1
2
X <- matrix(rnorm(6*6),ncol=6)
trace <- tr(X)

ThreeWay documentation built on May 29, 2017, 11:52 p.m.

Related to tr in ThreeWay...