/** * Reads a matrix in which has been encoded using a Column Space Value (CSV) * file format. For a description of the format see {@link MatrixIO#loadCSV(String,boolean)}. * * @param fileName The file being loaded. * @param numRows number of rows in the matrix. * @param numCols number of columns in the matrix. * @return DMatrixRMaj * @throws IOException */ public static DMatrixRMaj loadCSV(String fileName , int numRows , int numCols ) throws IOException { FileInputStream fileStream = new FileInputStream(fileName); ReadMatrixCsv csv = new ReadMatrixCsv(fileStream); DMatrixRMaj ret = csv.readDDRM(numRows, numCols); fileStream.close(); return ret; }
return (M) readDDRM(numRows, numCols); else return (M) readZDRM(numRows, numCols);