org.ejml.ops
Class MatrixIO
java.lang.Object
org.ejml.ops.MatrixIO
public class MatrixIO
- extends Object
- Author:
- Peter Abeles
|
Method Summary |
static
|
load(String fileName)
Loads a DeneMatrix64F which has been saved to file using Java binary
serialization. |
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 |
save(Matrix64F A,
String fileName)
Saves a matrix to disk using Java binary serialization. |
static void |
show(D1Matrix64F A,
String title)
Creates a window visually showing the matrix's state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatrixIO
public MatrixIO()
show
public static void show(D1Matrix64F A,
String title)
- Creates a window visually showing the matrix's state. Block means an element is zero.
Red positive and blue negative. More intense the color larger the element's absolute value
is.
- Parameters:
A - A matrix.title - Name of the window.
save
public static void save(Matrix64F A,
String fileName)
throws IOException
- Saves a matrix to disk using Java binary serialization.
- Parameters:
A - The matrix being saved.fileName - Name of the file its being saved at.
- Throws:
IOException
load
public static <T extends Matrix64F> T load(String fileName)
throws IOException
- Loads a DeneMatrix64F which has been saved to file using Java binary
serialization.
- Parameters:
fileName - The file being loaded.
- Returns:
- DenseMatrix64F
- Throws:
IOException
print
public static void print(PrintStream out,
Matrix64F mat)
print
public static void print(PrintStream out,
Matrix64F mat,
int numChar,
int precision)
print
public static void print(PrintStream out,
Matrix64F mat,
String format)
print
public static void print(PrintStream out,
Matrix64F mat,
String format,
int row0,
int row1,
int col0,
int col1)
Copyright © 2011. All Rights Reserved.