IMatrixUtils Class Reference

Utilities to work with matrices. More...

List of all members.

Static Public Member Functions

static IMatrix< int > ReadMatrix (TextReader reader, IMatrix< int > example_matrix)
 Read a matrix of integers from a TextReader object.
static IMatrix< float > ReadMatrix (TextReader reader, IMatrix< float > example_matrix)
 Read a matrix from a TextReader object.
static IMatrix< double > ReadMatrix (TextReader reader, IMatrix< double > example_matrix)
 Read a matrix from a TextReader object.
static void WriteMatrix (StreamWriter writer, IMatrix< int > matrix)
 Write a matrix of integers to a StreamWriter object.
static void WriteMatrix (StreamWriter writer, IMatrix< float > matrix)
 Write a matrix of floats to a StreamWriter object.
static void WriteMatrix (StreamWriter writer, IMatrix< double > matrix)
 Write a matrix of doubles to a StreamWriter object.
static void WriteSparseMatrix (StreamWriter writer, SparseMatrix< int > matrix)
 Write a sparse matrix of integers to a StreamWriter object.
static void WriteSparseMatrix (StreamWriter writer, SparseMatrix< float > matrix)
 Write a sparse matrix of floats to a StreamWriter object.
static void WriteSparseMatrix (StreamWriter writer, SparseMatrix< double > matrix)
 Write a sparse matrix of doubles to a StreamWriter object.

Detailed Description

Utilities to work with matrices.


Member Function Documentation

static IMatrix<int> ReadMatrix ( TextReader  reader,
IMatrix< int >  example_matrix 
) [static]

Read a matrix of integers from a TextReader object.

Parameters:
reader the TextReader object to read from
example_matrix matrix of the type of matrix to create
Returns:
a matrix of integers
static IMatrix<float> ReadMatrix ( TextReader  reader,
IMatrix< float >  example_matrix 
) [static]

Read a matrix from a TextReader object.

Parameters:
reader the TextReader object to read from
example_matrix matrix of the type of matrix to create
Returns:
a matrix of float
static IMatrix<double> ReadMatrix ( TextReader  reader,
IMatrix< double >  example_matrix 
) [static]

Read a matrix from a TextReader object.

Parameters:
reader the TextReader object to read from
example_matrix matrix of the type of matrix to create
Returns:
a matrix of doubles
static void WriteMatrix ( StreamWriter  writer,
IMatrix< int >  matrix 
) [static]

Write a matrix of integers to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of doubles to write out
static void WriteMatrix ( StreamWriter  writer,
IMatrix< float >  matrix 
) [static]

Write a matrix of floats to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of floats to write out
static void WriteMatrix ( StreamWriter  writer,
IMatrix< double >  matrix 
) [static]

Write a matrix of doubles to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of doubles to write out
static void WriteSparseMatrix ( StreamWriter  writer,
SparseMatrix< int >  matrix 
) [static]

Write a sparse matrix of integers to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of doubles to write out
static void WriteSparseMatrix ( StreamWriter  writer,
SparseMatrix< float >  matrix 
) [static]

Write a sparse matrix of floats to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of floats to write out
static void WriteSparseMatrix ( StreamWriter  writer,
SparseMatrix< double >  matrix 
) [static]

Write a sparse matrix of doubles to a StreamWriter object.

Parameters:
writer a StreamWriter
matrix the matrix of doubles to write out

The documentation for this class was generated from the following file:
Generated on Tue May 24 12:44:17 2011 for MyMediaLite by  doxygen 1.6.3