#include <dense-submatrix.h>
Inheritance diagram for DenseSubmatrix:
This matrix type conforms to the same interface as @ref{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 _Element | Element |
typedef DenseSubmatrix< _Element > | Self_t |
typedef DenseMatrixBase< Element >::RowIterator | RowIterator |
typedef DenseMatrixBase< Element >::ConstRowIterator | ConstRowIterator |
typedef DenseMatrixBase< Element >::Row | Row |
typedef DenseMatrixBase< Element >::ConstRow | ConstRow |
typedef DenseMatrixBase< Element >::ColIterator | ColIterator |
typedef DenseMatrixBase< Element >::ConstColIterator | ConstColIterator |
typedef DenseMatrixBase< Element >::Col | Col |
typedef DenseMatrixBase< Element >::Column | Column |
typedef DenseMatrixBase< Element >::ConstCol | ConstCol |
typedef const RawIndexedIterator | ConstRawIndexedIterator |
Public Methods | |
DenseSubmatrix () | |
DenseSubmatrix (DenseMatrixBase< Element > &M, size_t row, size_t col, size_t rowdim, size_t coldim) | |
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) |
RowIterator | rowBegin () |
RowIterator | rowEnd () |
ConstRowIterator | rowBegin () const |
ConstRowIterator | rowEnd () const |
ColIterator | colBegin () |
ColIterator | colEnd () |
ConstColIterator | colBegin () const |
ConstColIterator | colEnd () const |
RawIterator | rawBegin () |
RawIterator | rawEnd () |
ConstRawIterator | rawBegin () const |
ConstRawIterator | rawEnd () const |
RawIndexedIterator | rawIndexBegin () |
RawIndexedIterator | rawIndexEnd () |
ConstRawIndexedIterator | rawIndexBegin () const |
ConstRawIndexedIterator | rawIndexEnd () const |
Protected Attributes | |
DenseMatrixBase< Element > * | _M |
size_t | _beg_row |
size_t | _end_row |
size_t | _beg_col |
size_t | _end_col |
|
|
|
The columns iterator gives the columns of the matrix in ascending order. Dereferencing the iterator yields a column vector in dense format |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The row iterator gives the rows of the matrix in ascending order. Dereferencing the iterator yields a row vector in dense format |
|
Reimplemented in BlasBlackbox. |
|
|
|
Constructor from an existing @ref{DenseMatrixBase} and dimensions
|
|
Constructor from an existing submatrix and dimensions
|
|
Copy constructor
|
|
|
|
|
|
Get the number of columns in the matrix
Reimplemented in BlasBlackbox. |
|
|
|
|
|
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
|
|
Get a read-only individual entry from the matrix
|
|
Assignment operator Assign the given submatrix to this one
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Read the matrix from an input stream
|
|
Get a writeable reference to an entry in the matrix
|
|
|
|
|
|
Get the number of rows in the matrix
Reimplemented in BlasBlackbox. |
|
|
|
|
|
Set the entry at (i, j)
|
|
Write the matrix to an output stream
|
|
|
|
|
|
|
|
|
|
Retrieve a reference to a row
|