Trace {GrassmannOptim}R Documentation

Trace of a square matrix

Description

Compute the trace of a square matrix.

Usage

Trace(X)

Arguments

X a square matrix.

Value

Returns a scalar that is the sum of the diagonal elements of X.

Author(s)

Kofi P. Adragni <kofi.adragni@gmail.com>

References

Schott, J. (1997) Matrix Analysis for Statistics. Wiley.


[Package GrassmannOptim version 1.0 Index]