MyMediaLite
3.02
|
Interface for boolean matrices. More...
Public Member Functions | |
IMatrix< T > | CreateMatrix (int num_rows, int num_columns) |
Create a matrix with a given number of rows and columns. | |
IList< int > | GetEntriesByColumn (int column_id) |
Get all true entries (row IDs) of a column. | |
IList< int > | GetEntriesByRow (int row_id) |
Get all true entries (column IDs) of a row. | |
void | Grow (int num_rows, int num_cols) |
Grows the matrix to the requested size, if necessary. | |
int | NumEntriesByColumn (int column_id) |
Get all the number of entries in a column. | |
int | NumEntriesByRow (int row_id) |
Get all the number of entries in a row. | |
int | Overlap (IBooleanMatrix s) |
Get the overlap of two matrices, i.e. the number of true entries where they agree. | |
IMatrix< T > | Transpose () |
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged. | |
Properties | |
bool | IsSymmetric [get] |
True if the matrix is symmetric, false otherwise. | |
IList< int > | NonEmptyColumnIDs [get] |
The IDs of the non-empty columns in the matrix (the ones that contain at least one true entry) | |
IList< int > | NonEmptyRowIDs [get] |
The IDs of the non-empty rows in the matrix (the ones that contain at least one true entry) | |
int | NumberOfColumns [get] |
The number of columns of the matrix. | |
int | NumberOfEntries [get] |
The number of (true) entries. | |
int | NumberOfRows [get] |
The number of rows of the matrix. | |
T | this[int x, int y] [get, set] |
The value at (i,j) | |
ICollection< int > | this[int x] [get] |
Indexer to access the rows of the matrix. |
Interface for boolean matrices.
IMatrix<T> CreateMatrix | ( | int | num_rows, |
int | num_columns | ||
) | [inherited] |
Create a matrix with a given number of rows and columns.
num_rows | the number of rows |
num_columns | the number of columns |
Implemented in SparseMatrix< T >, Matrix< T >, SparseBooleanMatrix, SkewSymmetricSparseMatrix, SymmetricMatrix< T >, and SymmetricSparseMatrix< T >.
IList<int> GetEntriesByColumn | ( | int | column_id | ) |
Get all true entries (row IDs) of a column.
column_id | the column ID |
Implemented in SparseBooleanMatrix.
IList<int> GetEntriesByRow | ( | int | row_id | ) |
Get all true entries (column IDs) of a row.
row_id | the row ID |
Implemented in SparseBooleanMatrix.
void Grow | ( | int | num_rows, |
int | num_cols | ||
) | [inherited] |
Grows the matrix to the requested size, if necessary.
The new entries are filled with zeros.
num_rows | the minimum number of rows |
num_cols | the minimum number of columns |
Implemented in Matrix< T >, SparseBooleanMatrix, SparseMatrix< T >, and SymmetricMatrix< T >.
int NumEntriesByColumn | ( | int | column_id | ) |
Get all the number of entries in a column.
column_id | the column ID |
Implemented in SparseBooleanMatrix.
int NumEntriesByRow | ( | int | row_id | ) |
Get all the number of entries in a row.
row_id | the row ID |
Implemented in SparseBooleanMatrix.
int Overlap | ( | IBooleanMatrix | s | ) |
Get the overlap of two matrices, i.e. the number of true entries where they agree.
s | the IBooleanMatrix to compare to |
Implemented in SparseBooleanMatrix.
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged.
Implemented in SparseBooleanMatrix, SparseMatrix< T >, Matrix< T >, and SymmetricMatrix< T >.
bool IsSymmetric [get, inherited] |
True if the matrix is symmetric, false otherwise.
True if the matrix is symmetric, false otherwise
Implemented in SparseBooleanMatrix, SkewSymmetricSparseMatrix, SparseMatrix< T >, Matrix< T >, SymmetricSparseMatrix< T >, CorrelationMatrix, and SymmetricMatrix< T >.
IList<int> NonEmptyColumnIDs [get] |
The IDs of the non-empty columns in the matrix (the ones that contain at least one true entry)
Implemented in SparseBooleanMatrix.
IList<int> NonEmptyRowIDs [get] |
The IDs of the non-empty rows in the matrix (the ones that contain at least one true entry)
Implemented in SparseBooleanMatrix.
int NumberOfColumns [get, inherited] |
The number of columns of the matrix.
The number of columns of the matrix
Implemented in SparseBooleanMatrix, SparseMatrix< T >, Matrix< T >, and SymmetricMatrix< T >.
int NumberOfEntries [get] |
The number of (true) entries.
Implemented in SparseBooleanMatrix.
int NumberOfRows [get, inherited] |
The number of rows of the matrix.
The number of rows of the matrix
Implemented in SparseBooleanMatrix, SparseMatrix< T >, Matrix< T >, and SymmetricMatrix< T >.
T this[int x, int y] [get, set, inherited] |
The value at (i,j)
The value at (i,j)
x | the row ID |
y | the column ID |
Implemented in SparseMatrix< T >, SparseBooleanMatrix, SkewSymmetricSparseMatrix, and SymmetricSparseMatrix< T >.
ICollection<int> this[int x] [get] |
Indexer to access the rows of the matrix.
x | the row ID |
Implemented in SparseBooleanMatrix.