RosettaCodeData/Task/Arrays/Stata/arrays-1.stata

9 lines
171 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
matrix a = 2,9,4\7,5,3\6,1,8
display det(a)
matrix svd u d v = a
matrix b = u*diag(d)*v'
matrix list b
* store the u and v matrices in the current dataset
svmat u
svmat v