a symmetric sparse matrix; consumes less memory
More...
|
override IMatrix< T > | CreateMatrix (int num_rows, int num_columns) |
| Create a matrix with a given number of rows and columns More...
|
|
virtual void | Resize (int size) |
| Resize to the given size More...
|
|
void | Resize (int num_rows, int num_cols) |
| Grows or shrinks the matrix to the requested size, if necessary More...
|
|
| SymmetricSparseMatrix (int dimension) |
| Create a symmetric sparse matrix with a given dimension More...
|
|
virtual IMatrix< T > | Transpose () |
| Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged More...
|
|
|
override bool | IsSymmetric [get] |
| Always true because the data type is symmetric More...
|
|
override IList< Tuple< int, int > > | NonEmptyEntryIDs [get] |
|
int | NumberOfColumns [get] |
|
override int | NumberOfNonEmptyEntries [get] |
|
int | NumberOfRows [get] |
|
override T | this[int x, int y] [get, set] |
| Access the elements of the sparse matrix More...
|
|
Dictionary< int, T > | this[int x] [get] |
| Get a row of the matrix More...
|
|
a symmetric sparse matrix; consumes less memory
Create a symmetric sparse matrix with a given dimension
- Parameters
-
dimension | the dimension (number of rows/columns) |
override IMatrix<T> CreateMatrix |
( |
int |
num_rows, |
|
|
int |
num_columns |
|
) |
| |
|
inlinevirtual |
Create a matrix with a given number of rows and columns
- Parameters
-
num_rows | the number of rows |
num_columns | the number of columns |
- Returns
- A matrix with num_rows rows and num_column columns
Reimplemented from SparseMatrix< T >.
virtual void Resize |
( |
int |
size | ) |
|
|
inlinevirtual |
void Resize |
( |
int |
num_rows, |
|
|
int |
num_cols |
|
) |
| |
|
inlineinherited |
Grows or shrinks the matrix to the requested size, if necessary
The new entries are filled with zeros. Obsolete entries are removed.
- Parameters
-
num_rows | the number of rows |
num_cols | the number of columns |
Implements IMatrix< T >.
Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
- Returns
- the transpose of the matrix (copy)
Implements IMatrix< T >.
override bool IsSymmetric |
|
get |
Always true because the data type is symmetric
Always true because the data type is symmetric
override T this[int x, int y] |
|
getset |
Access the elements of the sparse matrix
- Parameters
-
x | the row ID |
y | the column ID |
Dictionary<int, T> this[int x] |
|
getinherited |
Get a row of the matrix
- Parameters
-
The documentation for this class was generated from the following file: