tr: Matrix trace

Description Usage Arguments Details Author(s) Examples

View source: R/tfunctions.r

Description

Compute the trace of a matrix

Usage

1
tr(A)

Arguments

A

a square matrix

Details

This function computes the trace of a square matrix.

Author(s)

Peter Hoff

Examples

1
tr(riwsh(diag(5)))

MikeKozelMSU/mcmcFunc documentation built on May 22, 2019, 5:31 p.m.