RosettaCodeData/Task/Arrays/Stata/arrays-1.stata
2017-09-25 22:28:19 +02: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