Trace: Compute the Trace of a Matrix

View source: R/utils.R

TraceR Documentation

Compute the Trace of a Matrix

Description

Function computes the sum of main-diagonal elements of a square 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


VCA documentation built on Sept. 7, 2022, 5:07 p.m.