S method
Return the diagonal matrix of singular values return S
Implementation
Array2d S() {
var S = Array2d.fixed(_m, _n);
for (var i = 0; i < _m; i++) {
for (var j = 0; j < _n; j++) {
S[i][j] = 0.0;
}
if (i < _s.length && i < _n) {
S[i][i] = _s[i];
}
}
return S;
}