MyMediaLite
3.02
|
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. | |
void | Grow (int num_rows, int num_cols) |
Grows the matrix to the requested size, if necessary. | |
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. | |
int | NumberOfColumns [get] |
The number of columns of the matrix. | |
int | NumberOfRows [get] |
The number of rows of the matrix. | |
T | this[int x, int y] [get, set] |
The value at (i,j) |
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 >, SparseBooleanMatrix, SkewSymmetricSparseMatrix, SymmetricMatrix< T >, and SymmetricSparseMatrix< T >.
void Grow | ( | int | num_rows, |
int | num_cols | ||
) |
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 >.
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] |
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 >.
int NumberOfColumns [get] |
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 NumberOfRows [get] |
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] |
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 >.