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 mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it

Examples

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

ThreeWay documentation built on May 19, 2017, 10:20 p.m.

Search within the ThreeWay package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.