|
typedef Field::Element | Element |
| Element type.
|
|
typedef BlasSubmatrix< _Matrix > | Self_t |
| Self type.
|
|
typedef const BlasSubmatrix< typename _Matrix::constSelf_t > | constSelf_t |
| Self type (const)
|
|
typedef Rep::pointer | pointer |
| pointer type to elements
|
|
typedef const pointer | const_pointer |
| const pointer type
|
|
typedef Self_t | subMatrixType |
| Submatrix type.
|
|
typedef constSelf_t | constSubMatrixType |
| Submatrix type (const)
|
|
typedef _Matrix::Self_t | matrixType |
| non const matrix type
|
|
typedef _Matrix::constSelf_t | constMatrixType |
| matrix type (const)
|
|
typedef matrixType | blasType |
| blas matrix type
|
|
typedef BlasVector< Field, Rep > | vectorType |
| blas matrix type
|
|
|
The row iterator gives the rows of the matrix in ascending order.
Dereferencing the iterator yields a row vector in dense format
|
typedef matrixType::RowIterator | RowIterator |
|
typedef matrixType::ConstRowIterator | ConstRowIterator |
|
typedef matrixType::Row | Row |
|
typedef matrixType::ConstRow | ConstRow |
|
|
The columns iterator gives the columns of the matrix in ascending order.
Dereferencing the iterator yields a column vector in dense format
|
typedef matrixType::ColIterator | ColIterator |
|
typedef matrixType::ConstColIterator | ConstColIterator |
|
typedef matrixType::Col | Col |
|
typedef matrixType::Column | Column |
|
typedef matrixType::ConstCol | ConstCol |
|
|
| BlasSubmatrix (constMatrixType &M, size_t rowbeg, size_t colbeg, size_t Rowdim, size_t Coldim) |
| NULL constructor. More...
|
|
| BlasSubmatrix (constMatrixType &M) |
| Constructor from an existing BlasMatrix. More...
|
|
| BlasSubmatrix (constSelf_t &SM, size_t rowbeg, size_t colbeg, size_t Rowdim, size_t Coldim) |
| Constructor from an existing submatrix and dimensions. More...
|
|
| BlasSubmatrix (constSelf_t &SM) |
| Copy constructor. More...
|
|
BlasSubmatrix & | operator= (const BlasSubmatrix< _Matrix > &SM) |
| Assignment operator. More...
|
|
template<class Matrix > |
BlasSubmatrix & | copy (const Matrix &B) |
| This is deep copy of the data, operator= is a shallow copy.
|
|
BlasSubmatrix & | swap (Self_t &B) |
| Swap contents. Shapes must be the same.
|
|
BlasSubmatrix & | zero () |
| Overwrite with zeroes.
|
|
void | random () |
| Overwrite with random elements.
|
|
size_t | rowdim () const |
| Get the number of rows in the matrix. More...
|
|
size_t | coldim () const |
| Get the number of columns in the matrix. More...
|
|
size_t | getStride () const |
| Get the stride of the matrix. More...
|
|
std::istream & | read (std::istream &file) |
| Read the matrix from an input stream. More...
|
|
std::ostream & | write (std::ostream &os, Tag::FileFormat f=Tag::FileFormat::MatrixMarket) const |
| Write the matrix to an output stream. More...
|
|
pointer | getPointer () |
| .
|
|
pointer | getWritePointer () |
| .
|
|
const Element & | setEntry (size_t i, size_t j, const Element &a_ij) |
| Set the entry at (i, j). More...
|
|
Element & | refEntry (size_t i, size_t j) |
| Get a writeable reference to an entry in the matrix. More...
|
|
const Element & | getEntry (size_t i, size_t j) const |
| Get a read-only individual entry from the matrix. More...
|
|
Element & | getEntry (Element &x, size_t i, size_t j) const |
| Get an entry and store it in the given value. More...
|
|
RowIterator | rowBegin () |
| iterator to the begining of a row
|
|
RowIterator | rowEnd () |
| iterator to the end of a row
|
|
ConstRowIterator | rowBegin () const |
| const iterator to the begining of a row
|
|
ConstRowIterator | rowEnd () const |
| const iterator to the end of a row
|
|
Row | operator[] (size_t i) |
| operator[]. More...
|
|
template<class Vector1 , class Vector2 > |
Vector1 & | apply (Vector1 &y, const Vector2 &x) const |
|
template<class Vector1 , class Vector2 > |
Vector1 & | applyTranspose (Vector1 &y, const Vector2 &x) const |
|
template<class _Matrix>
class LinBox::BlasSubmatrix< _Matrix >
Dense Submatrix representation.
A BlasSubmatrix is a matrix of _Field::Element
, with the structure of BLAS matrices. It is basically a read/write view on a vector of _Field::Element
. In the Mother model, a BlasSubmatrix is not allocated.
This matrix type conforms to the same interface as BlasMatrix, 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 BlasMatrix will be modified.