RosettaCodeData/Task/Arrays/Stata/arrays-1.stata
2023-07-01 13:44:08 -04:00

8 lines
171 B
Text

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