h***y 发帖数: 162 | 1 If I have a symmetric matrix, how can I get the diagonal elements of it and
put them into the last 'column' of that matrix?
Thanks. | A****t 发帖数: 141 | 2 symmettric matrix: a
proc iml;
b=diag(a);
row=nrow(b);
c=j(row,1,1);
d=a||(b*c);
run;
quit; |
|