tr: Trace of a matrix

View source: R/tr.r

trR Documentation

Trace of a matrix

Description

This function computes the trace of a matrix.

Usage

tr(M)

Arguments

M

square matrix

Value

The trace of the matrix M.

Author(s)

Nicole Kraemer

Examples


M<-matrix(rnorm(8*8),ncol=8)
tr.M<-tr(M)


fbertran/plsdof documentation built on Dec. 2, 2022, 11:35 p.m.