code: private static Matrix readMatlabSparse(
               File matrixFile,
               Type matrixType,
               boolean transposeOnRead) throws IOException {
  
           Matrix matrix = new GrowingSparseMatrix();
           BufferedReader br = new BufferedReader(new FileReader(matrixFile));
           for (String line = null; (line = br.readLine()) != null; ) {
               String[] rowColVal = line.split("\\s+");
               int row = Integer.parseInt(rowColVal[0]) - 1;
               int col = Integer.parseInt(rowColVal[1]) - 1;
               double value = Double.parseDouble(rowColVal[2]);
               if (transposeOnRead)
                   matrix.set(col, row, value);
               else
                   matrix.set(row, col, value);
           }
           br.close();
           return matrix;
       }
docs: Creates a {@code Matrix} from the data encoded as {@link
  Format#SVDLIBC_SPARSE_TEXT} in provided file.
  
  @param matrix
  @param matrixType
  @param transposeOnRead
  
  @return a matrix whose data was specified by the provided file