code: public double[][] getS() {
      double[][] S = new double[n][n];
      for(int i = 0; i < n; i++) {
        S[i][i] = this.s[i];
      }
      return S;
    }
docs: Return the diagonal matrix of singular values
  
  @return S