Learn R Programming

VCA (version 1.3.1)

Trace: Compute the Trace of a Matrix.

Description

Function computes the sum of main-diagonal elements of a squared matrix.

Usage

Trace(x, quiet = FALSE)

Arguments

x
(matrix, Matrix) object
quiet
(logical) TRUE = will suppress any warning, which will be issued otherwise

Value

(numeric) value, the trace of the matrix