|
MyMediaLite
3.11
|
Generic interface for matrix data types 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... | |
| 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... | |
| int | NumberOfColumns [get] |
| The number of columns of the matrix 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... | |
Generic interface for matrix data types
| IMatrix<T> CreateMatrix | ( | int | num_rows, |
| int | num_columns | ||
| ) |
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 >, SymmetricMatrix< T >, and SymmetricSparseMatrix< T >.
| void Resize | ( | int | num_rows, |
| int | num_cols | ||
| ) |
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 |
Implemented in Matrix< T >, SparseMatrix< T >, and SymmetricMatrix< T >.
| IMatrix<T> Transpose | ( | ) |
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
Implemented in SparseMatrix< T >, Matrix< T >, and SymmetricMatrix< T >.
|
get |
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 number of columns of the matrix
The number of columns of the matrix
|
get |
The number of rows of the matrix
The number of rows of the matrix
|
getset |
The value at (i,j)
The value at (i,j)
| x | the row ID |
| y | the column ID |
1.8.9.1