|  | CMR
    1.3.0
    | 
#include <matrix.hpp>
 
  
| Public Types | |
| typedef M::Index | Index | 
| typedef M::Value | Value | 
| typedef M::Nonzero | Nonzero | 
|  Public Types inherited from tu::Matrix< M::Value > | |
| typedef M::Value | Value | 
| typedef std::size_t | Index | 
| Type of entries.  More... | |
| Public Member Functions | |
| Submatrix (const M &matrix, const SubmatrixIndices &indices) | |
| Constructs submatrix of matrixindexed byindices.  More... | |
| Submatrix (Submatrix &&other) | |
| Move constructor.  More... | |
| std::size_t | numRows () const | 
| Returns the number of rows.  More... | |
| std::size_t | numColumns () const | 
| Returns the number of columns.  More... | |
| bool | hasSortedRows () const | 
| Indicates if the row data is sorted by column.  More... | |
| bool | hasSortedColumns () const | 
| Indicates if the column data is sorted by row.  More... | |
| const Value & | get (Index row, Index column) const | 
| Returns entry at row,column.  More... | |
| void | ensureConsistency () const | 
| Checks for consistency, raising a std::runtime_error if inconsistent.  More... | |
| typedef M::Index tu::Submatrix< M >::Index | 
| typedef M::Nonzero tu::Submatrix< M >::Nonzero | 
| typedef M::Value tu::Submatrix< M >::Value | 
| 
 | inline | 
Constructs submatrix of matrix indexed by indices. 
| 
 | inline | 
Move constructor.
| 
 | inline | 
Checks for consistency, raising a std::runtime_error if inconsistent.
| 
 | inline | 
Returns entry at row, column. 
Returns entry at row, column. If the row or column data is sorted (resp. not sorted) then the time is logarithmic (resp. linear) in the number of nonzeros of the row or column. 
| 
 | inline | 
Indicates if the column data is sorted by row.
| 
 | inline | 
Indicates if the row data is sorted by column.
| 
 | inline | 
Returns the number of columns.
| 
 | inline | 
Returns the number of rows.