|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ejml.ops.MatrixIO
public class MatrixIO
Provides simple to use routines for reading and writing matrices to and from files.
| Constructor Summary | |
|---|---|
MatrixIO()
|
|
| Method Summary | ||
|---|---|---|
static
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixIO()
| Method Detail |
|---|
public static void saveBin(Matrix64F A,
String fileName)
throws IOException
A - The matrix being saved.fileName - Name of the file its being saved at.
IOException
public static <T extends Matrix64F> T loadBin(String fileName)
throws IOException
fileName - The file being loaded.
IOException
public 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.
IOException
public static DenseMatrix64F loadCSV(String fileName)
throws IOException
fileName - The file being loaded.
IOException
public 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.
IOException
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||