tr: Trace of a matrix

trR Documentation

Trace of a matrix

Description

Returns the trace of a matrix

Usage

tr(a)

Arguments

a

Matrix whose trace is desired

Author(s)

Robin K. S. Hankin

Examples

tr(matrix(1:9,3,3))

emulator documentation built on Sept. 7, 2026, 9:07 a.m.