tr: Calculate the trace of a matrix.

Description Usage Arguments Value

View source: R/internals.R

Description

Calculate the trace of a matrix.

Usage

1
tr(x)

Arguments

x

A square matrix.

Value

The trace of the matrix.


JonasMoss/reliable documentation built on Nov. 18, 2019, 5:34 a.m.