tr: Trace of matrix

Description Usage Arguments Value Author(s) References Examples

View source: R/tr.R

Description

Computes the trace of a given matrix.

Usage

1
tr(M)

Arguments

M

A matrix whose trace is to be computed.

Value

A scalar value, describing the trace of M.

Author(s)

Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>

References

Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.

Examples

1
tr(matrix(2,2,2))

lmreg documentation built on May 2, 2019, 9:29 a.m.

Related to tr in lmreg...