tr: Trace of a matrix.

Description Usage Arguments Details Value Author(s)

View source: R/steiniv.R

Description

Compute the trace of a square matrix.

Usage

1
  tr(X)

Arguments

X

Numeric: A square matrix.

Details

This computes the sum of the diagonal elements of a square matrix.

Value

numeric

A real number.

Author(s)

Cedric E. Ginestet <cedric.ginestet@kcl.ac.uk>


SteinIV documentation built on May 2, 2019, 6:17 a.m.

Related to tr in SteinIV...