C# Class MyMediaLite.DataType.IMatrixUtils

Utilities to work with matrices
ファイルを表示 Open project: zenogantner/MML-KDD

Public Methods

Method Description
ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix

Read a matrix from a TextReader object

ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix

Read a matrix from a TextReader object

ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix

Read a matrix of integers from a TextReader object

WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void

Write a matrix of doubles to a StreamWriter object

WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void

Write a matrix of floats to a StreamWriter object

WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void

Write a matrix of integers to a StreamWriter object

WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void

Write a sparse matrix of doubles to a StreamWriter object

WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void

Write a sparse matrix of floats to a StreamWriter object

WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void

Write a sparse matrix of integers to a StreamWriter object

Method Details

ReadMatrix() public static method

Read a matrix from a TextReader object
public static ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix
reader System.IO.TextReader the object to read from
example_matrix IMatrix matrix of the type of matrix to create
return IMatrix

ReadMatrix() public static method

Read a matrix from a TextReader object
public static ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix
reader System.IO.TextReader the object to read from
example_matrix IMatrix matrix of the type of matrix to create
return IMatrix

ReadMatrix() public static method

Read a matrix of integers from a TextReader object
public static ReadMatrix ( TextReader reader, IMatrix example_matrix ) : IMatrix
reader System.IO.TextReader the object to read from
example_matrix IMatrix matrix of the type of matrix to create
return IMatrix

WriteMatrix() public static method

Write a matrix of doubles to a StreamWriter object
public static WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix IMatrix the matrix of doubles to write out
return void

WriteMatrix() public static method

Write a matrix of floats to a StreamWriter object
public static WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix IMatrix the matrix of floats to write out
return void

WriteMatrix() public static method

Write a matrix of integers to a StreamWriter object
public static WriteMatrix ( StreamWriter writer, IMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix IMatrix the matrix of doubles to write out
return void

WriteSparseMatrix() public static method

Write a sparse matrix of doubles to a StreamWriter object
public static WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix SparseMatrix the matrix of doubles to write out
return void

WriteSparseMatrix() public static method

Write a sparse matrix of floats to a StreamWriter object
public static WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix SparseMatrix the matrix of floats to write out
return void

WriteSparseMatrix() public static method

Write a sparse matrix of integers to a StreamWriter object
public static WriteSparseMatrix ( StreamWriter writer, SparseMatrix matrix ) : void
writer System.IO.StreamWriter a
matrix SparseMatrix the matrix of doubles to write out
return void