Library: | multi |
See also: | sum xdiag |
Macro: | spur | |
Description: | computes the trace of the matrix |
Usage: | y = spur(x) | |
Input: | ||
x | n x n matrix, | |
Output: | ||
x | scalar, the trace of the matrix |
library("multi") randomize(1000) x = normal(3,3) y = spur(x) y
[1,] 0.361443
Library: | multi |
See also: | sum xdiag |