code: public double[] getSingularValues() {
          double ret[] = new double[W.numCols()];
  
          for (int i = 0; i < ret.length; i++) {
              ret[i] = getSingleValue(i);
          }
          return ret;
      }
docs: Returns an array of all the singular values