Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tr

Trace of A Matrix


Description

This function calculates the trace of a given numeric square matrix. This function should not be called directly in this package. It is called by other functions like dscore and sscore.

Usage

tr(X)

Arguments

X

A square matrix

Value

A numeric value which is the sum of the values on the diagnonal.

See Also

Examples

A=matrix(seq(1:9),nrow=3,ncol=3)
	tr(A)

KMDA

Kernel-Based Metabolite Differential Analysis

v1.0
GNU General Public License
Authors
Xiang Zhan and Debashis Ghosh
Initial release
2015-03-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.