tr: Trace

View source: R/utilities.R

trR Documentation

Trace

Description

Return the trace of a square matrix

Usage

tr(x, ...)

Arguments

x

a square matrix

...

arguments passed to sum

Value

The trace, the sum of the diagonal elements, of the square matrix x


CommKern documentation built on Sept. 23, 2022, 5:07 p.m.