Learn R Programming

CommKern (version 1.0.1)

tr: Trace

Description

Return the trace of a square matrix

Usage

tr(x, ...)

Value

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

Arguments

x

a square matrix

...

arguments passed to sum