Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: multi
See also: sum xdiag

Quantlet: spur
Description: computes the trace of the matrix

Usage: y = spur(x)
Input:
x n x n matrix
Output:
y scalar, the trace of the matrix

Example:
library("multi")
randomize(100)
x=normal(5,5)
spur(x)

Result:
Contents of y
[1,]  2.7814



Author: C. Hafner, S. Sperlich, W. Haerdle, 19971022 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006