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 |
library("multi") randomize(100) x=normal(5,5) spur(x)
Contents of y [1,] 2.7814