a skew symmetric (anti-symmetric) sparse matrix; consumes less memory
More...
Public Member Functions |
| override IMatrix< float > | CreateMatrix (int num_rows, int num_columns) |
| | Create a matrix with a given number of rows and columns
|
| virtual void | Resize (int size) |
| | Resize to the given size
|
| void | Resize (int num_rows, int num_cols) |
| | Grows or shrinks the matrix to the requested size, if necessary
|
| | SkewSymmetricSparseMatrix (int dimension) |
| | Create a skew symmetric sparse matrix with a given dimension
|
| | SparseMatrix (int num_rows, int num_cols) |
| | Create a sparse matrix with a given number of rows
|
| | SymmetricSparseMatrix (int dimension) |
| | Create a symmetric sparse matrix with a given dimension
|
| virtual IMatrix< T > | Transpose () |
| | Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
|
Properties |
| override bool | IsSymmetric [get] |
| | Only true if all entries are zero, except for the diagonal
|
|
override IList< Tuple< int, int > > | NonEmptyEntryIDs [get] |
|
int | NumberOfColumns [get, set] |
|
override int | NumberOfNonEmptyEntries [get] |
|
int | NumberOfRows [get] |
| override float | this[int x, int y] [get, set] |
| | Access the elements of the sparse matrix
|
| Dictionary< int, T > | this[int x] [get] |
| | Get a row of the matrix
|
Detailed Description
a skew symmetric (anti-symmetric) sparse matrix; consumes less memory
Constructor & Destructor Documentation
Create a skew symmetric sparse matrix with a given dimension
- Parameters
-
| dimension | the dimension (number of rows/columns) |
Member Function Documentation
| override IMatrix<float> 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 SymmetricSparseMatrix< T >.
| virtual void Resize |
( |
int |
size | ) |
|
|
inlinevirtualinherited |
| 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 >.
| SparseMatrix |
( |
int |
num_rows, |
|
|
int |
num_cols |
|
) |
| |
|
inlineinherited |
Create a sparse matrix with a given number of rows
- Parameters
-
| num_rows | the number of rows |
| num_cols | the number of columns |
| SymmetricSparseMatrix |
( |
int |
dimension | ) |
|
|
inlineinherited |
Create a symmetric sparse matrix with a given dimension
- Parameters
-
| dimension | the dimension (number of rows/columns) |
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 >.
Property Documentation
| override bool IsSymmetric |
|
get |
Only true if all entries are zero, except for the diagonal
| override float 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:
- SkewSymmetricSparseMatrix.cs