Trace: Calculate trace of a matrix

Description Usage Arguments Details Author(s) Examples

View source: R/GraphAlignment.R

Description

Calculate the trace of a square matrix.

Usage

1
Trace(m)

Arguments

m

square matrix

Details

The return value is the trace of the input matrix.

Author(s)

Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and Johannes Berg

Examples

1
2
  m <- matrix(c(1, 0, 0, 1), 2, 2)
  Trace(m)

GraphAlignment documentation built on Nov. 8, 2020, 6:56 p.m.