|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.IMatrixExtensions
public class IMatrixExtensions
Utilities to work with matrices.
Constructor Summary | |
---|---|
IMatrixExtensions()
|
Method Summary | |
---|---|
static IMatrix<java.lang.Double> |
readDoubleMatrix(java.io.BufferedReader reader,
IMatrix<java.lang.Double> example_matrix)
Read a matrix from a BufferedReader object. |
static IMatrix<java.lang.Float> |
readFloatMatrix(java.io.BufferedReader reader,
IMatrix<java.lang.Float> example_matrix)
Read a matrix from a BufferedReader object. |
static IMatrix<java.lang.Integer> |
readIntegerMatrix(java.io.BufferedReader reader,
IMatrix<java.lang.Integer> example_matrix)
Read a matrix of integers from a BufferedReader object. |
static void |
writeMatrix(java.io.PrintWriter writer,
IMatrix<?> matrix)
Write a matrix to a PrintWriter object. |
static void |
writeSparseMatrix(java.io.PrintWriter writer,
SparseMatrix<?> matrix)
Write a sparse matrix of doubles to a PrintWriter object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMatrixExtensions()
Method Detail |
---|
public static void writeMatrix(java.io.PrintWriter writer, IMatrix<?> matrix)
writer
- a PrintWritermatrix
- the matrix to write outpublic static void writeSparseMatrix(java.io.PrintWriter writer, SparseMatrix<?> matrix)
writer
- a PrintWritermatrix
- the matrix of doubles to write outpublic static IMatrix<java.lang.Double> readDoubleMatrix(java.io.BufferedReader reader, IMatrix<java.lang.Double> example_matrix) throws java.io.IOException
reader
- the BufferedReader object to read fromexample_matrix
- matrix of the type of matrix to create
java.io.IOException
public static IMatrix<java.lang.Float> readFloatMatrix(java.io.BufferedReader reader, IMatrix<java.lang.Float> example_matrix) throws java.io.IOException
reader
- the BufferedReader object to read fromexample_matrix
- matrix of the type of matrix to create
java.io.IOException
public static IMatrix<java.lang.Integer> readIntegerMatrix(java.io.BufferedReader reader, IMatrix<java.lang.Integer> example_matrix) throws java.io.IOException
reader
- the BufferedReader object to read fromexample_matrix
- matrix of the type of matrix to create
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |