tr: Trace

View source: R/utils.R

trR Documentation

Trace

Description

Return the mathematical trace of a matrix, the sum of its diagonal elements.

Usage

tr(M)

Arguments

M

The matrix from which to calculate the trace.

Value

The trace of the matrix.


Kezrael/optedr documentation built on Oct. 12, 2024, 8:40 p.m.