Learn R Programming

cSEM (version 0.7.1)

trace: Internal: Trace of a matrix

Description

Compute the trace of .matrix, i.e., the sum of the diagonal elements of .matrix.

Usage

trace(.matrix)

Value

A numeric scalar: value with the trace of .matrix.

Arguments

.matrix

Square numeric matrix.