|
MyMediaLite
3.11
|
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 More... | |
| IList< int > | GetEntriesByColumn (int column_id) |
| Get all true entries (row IDs) of a column More... | |
| IList< int > | GetEntriesByRow (int row_id) |
| Get all true entries (column IDs) of a row More... | |
| int | NumEntriesByColumn (int column_id) |
| Get all the number of entries in a column More... | |
| int | NumEntriesByRow (int row_id) |
| Get all the number of entries in a row More... | |
| int | Overlap (IBooleanMatrix s) |
| Get the overlap of two matrices, i.e. the number of true entries where they agree More... | |
| void | Resize (int num_rows, int num_cols) |
| Grows or shrinks the matrix to the requested size, if necessary More... | |
| IMatrix< T > | Transpose () |
| Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged More... | |
Properties | |
| bool | IsSymmetric [get] |
| True if the matrix is stored in a symmetric manner, false otherwise More... | |
| IList< int > | NonEmptyColumnIDs [get] |
| The IDs of the non-empty columns in the matrix (the ones that contain at least one true entry) More... | |
| IList< int > | NonEmptyRowIDs [get] |
| The IDs of the non-empty rows in the matrix (the ones that contain at least one true entry) More... | |
| int | NumberOfColumns [get] |
| The number of columns of the matrix More... | |
| int | NumberOfEntries [get] |
| The number of (true) entries More... | |
| int | NumberOfRows [get] |
| The number of rows of the matrix More... | |
| T | this[int x, int y] [get, set] |
| The value at (i,j) More... | |
| ICollection< int > | this[int x] [get] |
| Indexer to access the rows of the matrix More... | |
Interface for boolean matrices
|
inherited |
Create a matrix with a given number of rows and columns
| num_rows | the number of rows |
| num_columns | the number of columns |
| 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.
| 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.
|
inherited |
Grows or shrinks the matrix to the requested size, if necessary
The new entries are filled with zeros. Obsolete entries are removed.
| num_rows | the number of rows |
| num_cols | the number of columns |
|
inherited |
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
|
getinherited |
True if the matrix is stored in a symmetric manner, false otherwise
Also true for skew symmetric matrices that exploit this property in order to save memory
|
get |
The IDs of the non-empty columns in the matrix (the ones that contain at least one true entry)
|
get |
The IDs of the non-empty rows in the matrix (the ones that contain at least one true entry)
|
getinherited |
The number of columns of the matrix
The number of columns of the matrix
|
get |
The number of (true) entries
|
getinherited |
The number of rows of the matrix
The number of rows of the matrix
|
getsetinherited |
The value at (i,j)
The value at (i,j)
| x | the row ID |
| y | the column ID |
|
get |
Indexer to access the rows of the matrix
| x | the row ID |
1.8.9.1