MyMediaLite  3.11
Static Public Member Functions | List of all members
MatrixExtensions Class Reference

Utilities to work with matrices More...

Static Public Member Functions

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

Detailed Description

Utilities to work with matrices

Member Function Documentation

static IMatrix<float> ReadMatrix ( this TextReader  reader,
IMatrix< float >  example_matrix 
)
inlinestatic

Read a matrix from a TextReader object

Parameters
readerthe TextReader object to read from
example_matrixmatrix of the type of matrix to create
Returns
a matrix of float
static IMatrix<int> ReadMatrix ( this TextReader  reader,
IMatrix< int >  example_matrix 
)
inlinestatic

Read a matrix of integers from a TextReader object

Parameters
readerthe TextReader object to read from
example_matrixmatrix of the type of matrix to create
Returns
a matrix of integers
static void WriteMatrix ( this TextWriter  writer,
IMatrix< float >  matrix 
)
inlinestatic

Write a matrix of floats to a StreamWriter object

Parameters
writera StreamWriter
matrixthe matrix of floats to write out
static void WriteSparseMatrix ( this TextWriter  writer,
SparseMatrix< float >  matrix 
)
inlinestatic

Write a sparse matrix of floats to a StreamWriter object

Parameters
writera StreamWriter
matrixthe matrix of floats to write out
static void WriteSparseMatrix ( this TextWriter  writer,
SparseMatrix< int >  matrix 
)
inlinestatic

Write a sparse matrix of integers to a StreamWriter object

Parameters
writera StreamWriter
matrixthe matrix of doubles to write out

The documentation for this class was generated from the following file: