internal.Trace: Compute the trace of a square matrix.

Description Usage Arguments Value Note Author(s) Examples

Description

The trace of a square matrix is defined as the sum of its diagonal elements.

Usage

1
.Trace(X)

Arguments

X

a square matrix

Value

the trace of X

Note

Internal function do not use.

Author(s)

Eric Coissac

Christelle Gonindard-Melodelima

Examples

1
2
m <- matrix(1:16, nrow = 4)
ProcMod:::.Trace(m)

ProcMod documentation built on May 12, 2021, 9:08 a.m.