|
MyMediaLite
3.11
|
Class for storing dense 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... | |
| void | Resize (int size) |
| Resize to the given size More... | |
| void | Resize (int num_rows, int num_columns) |
| Grows or shrinks the matrix to the requested size, if necessary More... | |
| SymmetricMatrix (int dim) | |
| Initializes a new instance of the SymmetricMatrix class More... | |
| IMatrix< T > | Transpose () |
| Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged More... | |
Public Attributes | |
| int | dim |
| Dimension, the number of rows and columns More... | |
Properties | |
| virtual bool | IsSymmetric [get] |
| int | NumberOfColumns [get] |
| int | NumberOfRows [get] |
| virtual T | this[int i, int j] [get, set] |
| T | this[int x, int y] [get, set] |
| The value at (i,j) More... | |
Class for storing dense matrices
The data is stored in row-major mode. Indexes are zero-based.
| T | the type of the matrix entries |
|
inline |
Initializes a new instance of the SymmetricMatrix class
| dim | the number of rows and columns |
|
inline |
Create a matrix with a given number of rows and columns
| num_rows | the number of rows |
| num_columns | the number of columns |
Implements IMatrix< T >.
|
inline |
Resize to the given size
| size | the size |
|
inline |
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 |
Implements IMatrix< T >.
|
inline |
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
Implements IMatrix< T >.
| int dim |
Dimension, the number of rows and columns
|
getsetinherited |
The value at (i,j)
The value at (i,j)
| x | the row ID |
| y | the column ID |
1.8.6