public class MatrixIO extends Object
| Constructor and Description |
|---|
MatrixIO() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Matrix64F> |
loadBin(String fileName)
Loads a DeneMatrix64F which has been saved to file using Java binary
serialization.
|
static DenseMatrix64F |
loadCSV(String fileName)
Reads a matrix in which has been encoded using a Column Space Value (CSV)
file format.
|
static DenseMatrix64F |
loadCSV(String fileName,
int numRows,
int numCols)
Reads a matrix in which has been encoded using a Column Space Value (CSV)
file format.
|
static void |
print(PrintStream out,
Matrix64F mat) |
static void |
print(PrintStream out,
Matrix64F mat,
int numChar,
int precision) |
static void |
print(PrintStream out,
Matrix64F mat,
String format) |
static void |
print(PrintStream out,
Matrix64F mat,
String format,
int row0,
int row1,
int col0,
int col1) |
static void |
saveBin(Matrix64F A,
String fileName)
Saves a matrix to disk using Java binary serialization.
|
static void |
saveCSV(Matrix64F A,
String fileName)
Saves a matrix to disk using in a Column Space Value (CSV) format.
|
public static void saveBin(Matrix64F A, String fileName) throws IOException
A - The matrix being saved.fileName - Name of the file its being saved at.IOExceptionpublic static <T extends Matrix64F> T loadBin(String fileName) throws IOException
fileName - The file being loaded.IOExceptionpublic static void saveCSV(Matrix64F A, String fileName) throws IOException
loadCSV(String).A - The matrix being saved.fileName - Name of the file its being saved at.IOExceptionpublic static DenseMatrix64F loadCSV(String fileName) throws IOException
fileName - The file being loaded.IOExceptionpublic static DenseMatrix64F loadCSV(String fileName, int numRows, int numCols) throws IOException
loadCSV(String).fileName - The file being loaded.numRows - number of rows in the matrix.numCols - number of columns in the matrix.IOExceptionpublic static void print(PrintStream out, Matrix64F mat)
public static void print(PrintStream out, Matrix64F mat, int numChar, int precision)
public static void print(PrintStream out, Matrix64F mat, String format)
public static void print(PrintStream out, Matrix64F mat, String format, int row0, int row1, int col0, int col1)
Copyright © 2013. All Rights Reserved.