#include <dense-submatrix.h>
Inheritance diagram for DenseSubmatrix:
This matrix type conforms to the same interface as DenseMatrixBase}, except that you cannot resize it. It represents a submatrix of a dense matrix. Upon construction, one can freely manipulate the entries in the DenseSubmatrix, and the corresponding entries in the underlying DenseMatrixBase will be modified.
Public Types | |
typedef DenseMatrixBase< Element >::RowIterator | RowIterator |
typedef DenseMatrixBase< Element >::ColIterator | ColIterator |
Public Member Functions | |
DenseSubmatrix (DenseMatrixBase< Element > &M, size_t row, size_t col, size_t rowdim, size_t coldim) | |
DenseSubmatrix (DenseMatrixBase< Element > &M) | |
DenseSubmatrix (const DenseSubmatrix< Element > &SM, size_t row, size_t col, size_t rowdim, size_t coldim) | |
DenseSubmatrix (const DenseSubmatrix< Element > &SM) | |
DenseSubmatrix & | operator= (const DenseSubmatrix< Element > &SM) |
size_t | rowdim () const |
size_t | coldim () const |
template<class Field> std::istream & | read (std::istream &file, const Field &field) |
template<class Field> std::ostream & | write (std::ostream &os, const Field &field, bool mapleFormat=false) const |
void | setEntry (size_t i, size_t j, const Element &a_ij) |
Element & | refEntry (size_t i, size_t j) |
const Element & | getEntry (size_t i, size_t j) const |
Element & | getEntry (Element &x, size_t i, size_t j) |
Protected Attributes | |
DenseMatrixBase< Element > * | _M |
|
The row iterator gives the rows of the matrix in ascending order. Dereferencing the iterator yields a row vector in dense format |
|
The columns iterator gives the columns of the matrix in ascending order. Dereferencing the iterator yields a column vector in dense format |
|
Constructor from an existing DenseMatrixBase} and dimensions
|
|
Constructor from an existing DenseMatrixBase}
|
|
Constructor from an existing submatrix and dimensions
|
|
Copy constructor
|
|
Assignment operator Assign the given submatrix to this one
|
|
Get the number of rows in the matrix
|
|
Get the number of columns in the matrix
|
|
Read the matrix from an input stream
|
|
Write the matrix to an output stream
|
|
Set the entry at (i, j)
|
|
Get a writeable reference to an entry in the matrix
|
|
Get a read-only individual entry from the matrix
|
|
Get an entry and store it in the given value This form is more in the Linbox style and is provided for interface compatibility with other parts of the library
|
|
Retrieve a reference to a row
|