|
linbox
|
Public Types | |
| typedef BlasMatrix< _Tp1, _Rep2 > | other |
| typedef _Matrix::Field | Field |
| typedef Field::Element | Element |
| Element type. | |
| typedef _Matrix::Storage | Storage |
| typedef _Matrix::RawStorage | RawStorage |
| typedef BlasSubmatrix< _Matrix > | Self_t |
| Self type. | |
| typedef MatrixEltPointer< _Matrix >::pointer | pointer |
| pointer type to elements | |
| typedef MatrixEltPointer< const_Matrix >::pointer | const_pointer |
| const pointer type to elements | |
| typedef _Matrix | matrixType |
| matrix type | |
| typedef Self_t | subMatrixType |
| typedef BlasSubmatrix< const _Matrix > | constSubMatrixType |
| typedef BlasSubmatrix< typename std::remove_const< _Matrix >::type > | nonconstSubMatrixType |
| typedef Storage::subVectorType | subVectorType |
| typedef Storage::constSubVectorType | constSubVectorType |
| typedef subVectorType | Row |
| typedef subVectorType | Col |
| typedef constSubVectorType | ConstRow |
| typedef constSubVectorType | ConstCol |
Public Member Functions | |
| void | operator() (other &Ap, const Self_t &A) |
| BlasSubmatrix< _Matrix > & | copy (const _AnyMatrix &M) |
| BlasSubmatrix< _Matrix > & | swap (_AnyMatrix &M) |
| BlasSubmatrix (matrixType &M, size_t rowbeg, size_t colbeg, size_t Rowdim, size_t Coldim) | |
| Constructor from an existing BlasMatrix and dimensions. | |
| BlasSubmatrix (Self_t &SM, size_t rowbeg, size_t colbeg, size_t Rowdim, size_t Coldim) | |
| Constructor from an existing submatrix and dimensions. | |
| BlasSubmatrix (matrixType &M) | |
| Constructor from an existing BlasMatrix. | |
| BlasSubmatrix (const Field &F, pointer ptr, size_t Rowdim, size_t Coldim, size_t stride) | |
| Constructor from a raw pointer. | |
| BlasSubmatrix (const constSubMatrixType &M) | |
| Copy constructor (virtual copy) | |
| BlasSubmatrix (nonconstSubMatrixType &M) | |
| BlasSubmatrix (const nonconstSubMatrixType &M) | |
| BlasSubmatrix (Self_t &&M)=default | |
| Move constructor / Move operator. | |
| Self_t & | operator= (Self_t &&M)=default |
| Self_t & | operator= (const Self_t &M)=delete |
| Self_t & | copy (const _AnyMatrix &A) |
| (copying data) -> works only if dimensions are the same | |
| BlasSubmatrix< _Matrix > & | copy (const _AnyMatrix &M) |
| Self_t & | swap (_AnyMatrix &A) |
| (swaping local data to same dimension (sub)part of A) -> works only if both dimensions of A are larger | |
| BlasSubmatrix< _Matrix > & | swap (_AnyMatrix &M) |
| size_t | rowdim () const |
| Get the number of rows in the matrix. | |
| size_t | coldim () const |
| Get the number of columns in the matrix. | |
| size_t | getStride () const |
| Get the stride of the matrix. | |
| const Field & | field () const |
| Get the field of the BlasSubMatrix. | |
| pointer | getPointer () |
| | |
| const_pointer | getPointer () const |
| const_pointer | getConstPointer () const |
| std::istream & | read (std::istream &file) |
| Read the matrix from an input stream. | |
| std::ostream & | write (std::ostream &os, Tag::FileFormat f=Tag::FileFormat::Plain) const |
| Write the matrix to an output stream. | |
| void | setEntry (size_t i, size_t j, const Element &a_ij) |
| Set the entry at (i, j). | |
| Element & | refEntry (size_t i, size_t j) |
| Get a writeable reference to an entry in the matrix. | |
| const Element & | getEntry (size_t i, size_t j) const |
| Get a read-only individual entry from the matrix. | |
| Element & | getEntry (Element &x, size_t i, size_t j) const |
| Get an entry and store it in the given value. | |
| Vector1 & | apply (Vector1 &y, const Vector2 &x) const |
| std::vector< Element > & | apply (std::vector< Element > &y, const std::vector< Element > &x) const |
| Vector1 & | applyTranspose (Vector1 &y, const Vector2 &x) const |
| std::vector< Element > & | applyTranspose (std::vector< Element > &y, const std::vector< Element > &x) const |
| void | zero () |
| void | random () |
| void | random (RandIter &G) |
Protected Attributes | |
| pointer | _ptr |
| pointer to the first elt of the submatrix | |
| size_t | _row |
| row dimension of Submatrix | |
| size_t | _col |
| col dimension of Submatrix | |
| size_t | _stride |
| stride of the original matrix | |
| const Field & | _field |
typedef'd Row Iterators. | |
The row iterator gives the rows of the matrix in ascending order. Dereferencing the iterator yields a row vector in dense format | |
| using | RowIterator |
| using | ConstRowIterator |
| RowIterator | rowBegin () |
| ConstRowIterator | rowBegin () const |
| RowIterator | rowEnd () |
| ConstRowIterator | rowEnd () const |
typedef'd Column Iterators. | |
The columns iterator gives the columns of the matrix in ascending order. Dereferencing the iterator yields a column vector in dense format | |
| using | ColIterator |
| operator[]. | |
| using | ConstColIterator |
| operator[]. | |
| using | IndexedIterator |
| operator[]. | |
| using | ConstIndexedIterator |
| operator[]. | |
| ColIterator | colBegin () |
| operator[]. | |
| ConstColIterator | colBegin () const |
| operator[]. | |
| ColIterator | colEnd () |
| operator[]. | |
| ConstColIterator | colEnd () const |
| operator[]. | |
| Iterator | Begin () |
| operator[]. | |
| ConstIterator | Begin () const |
| operator[]. | |
| Iterator | End () |
| operator[]. | |
| ConstIterator | End () const |
| operator[]. | |
| IndexedIterator | IndexedBegin () |
| operator[]. | |
| ConstIndexedIterator | IndexedBegin () const |
| operator[]. | |
| IndexedIterator | IndexedEnd () |
| operator[]. | |
| ConstIndexedIterator | IndexedEnd () const |
| operator[]. | |
| subVectorType | operator[] (size_t i) |
| operator[]. | |
| constSubVectorType | operator[] (size_t i) const |
| operator[]. | |
| typedef BlasMatrix<_Tp1,_Rep2> other |
| typedef _Matrix::Field Field |
| typedef _Matrix::Storage Storage |
| typedef _Matrix::RawStorage RawStorage |
| typedef BlasSubmatrix<_Matrix> Self_t |
Self type.
| typedef MatrixEltPointer<_Matrix>::pointer pointer |
pointer type to elements
| typedef MatrixEltPointer<const_Matrix>::pointer const_pointer |
const pointer type to elements
| typedef _Matrix matrixType |
matrix type
| typedef Self_t subMatrixType |
| typedef BlasSubmatrix<const _Matrix> constSubMatrixType |
| typedef BlasSubmatrix<typename std::remove_const<_Matrix>::type> nonconstSubMatrixType |
| typedef Storage::subVectorType subVectorType |
| typedef Storage::constSubVectorType constSubVectorType |
| typedef subVectorType Row |
| typedef subVectorType Col |
| typedef constSubVectorType ConstRow |
| typedef constSubVectorType ConstCol |
| using RowIterator |
| using ConstRowIterator |
| using ColIterator |
| using ConstColIterator |
| using IndexedIterator |
| using ConstIndexedIterator |
|
inline |
| BlasSubmatrix< _Matrix > & copy | ( | const _AnyMatrix & | M | ) |
| BlasSubmatrix< _Matrix > & swap | ( | _AnyMatrix & | M | ) |
| BlasSubmatrix | ( | matrixType & | M, |
| size_t | rowbeg, | ||
| size_t | colbeg, | ||
| size_t | Rowdim, | ||
| size_t | Coldim ) |
Constructor from an existing BlasMatrix and dimensions.
| M | Pointer to BlasMatrix of which to construct submatrix |
| rowbeg | Starting row |
| colbeg | Starting column |
| Rowdim | Row dimension |
| Coldim | Column dimension |
| BlasSubmatrix | ( | Self_t & | SM, |
| size_t | rowbeg, | ||
| size_t | colbeg, | ||
| size_t | Rowdim, | ||
| size_t | Coldim ) |
Constructor from an existing submatrix and dimensions.
| SM | Constant reference to BlasSubmatrix from which to construct submatrix |
| rowbeg | Starting row |
| colbeg | Starting column |
| Rowdim | Row dimension |
| Coldim | Column dimension |
| BlasSubmatrix | ( | matrixType & | M | ) |
Constructor from an existing BlasMatrix.
| M | Pointer to BlasMatrix of which to construct submatrix |
| BlasSubmatrix | ( | const Field & | F, |
| pointer | ptr, | ||
| size_t | Rowdim, | ||
| size_t | Coldim, | ||
| size_t | stride ) |
Constructor from a raw pointer.
| M | Pointer to BlasMatrix of which to construct submatrix |
| BlasSubmatrix | ( | const constSubMatrixType & | M | ) |
Copy constructor (virtual copy)
| BlasSubmatrix | ( | const nonconstSubMatrixType & | M | ) |
|
default |
Move constructor / Move operator.
| Self_t & copy | ( | const _AnyMatrix & | A | ) |
(copying data) -> works only if dimensions are the same
| BlasSubmatrix< _Matrix > & copy | ( | const _AnyMatrix & | M | ) |
| Self_t & swap | ( | _AnyMatrix & | A | ) |
(swaping local data to same dimension (sub)part of A) -> works only if both dimensions of A are larger
| BlasSubmatrix< _Matrix > & swap | ( | _AnyMatrix & | M | ) |
|
inline |
Get the number of rows in the matrix.
|
inline |
Get the number of columns in the matrix.
|
inline |
Get the stride of the matrix.
|
inline |
Get the field of the BlasSubMatrix.
|
inline |
Get pointer to the matrix data (read/write access will depend on the type of the template parameter _Matrix, i.e. const or not)
|
inline |
|
inline |
| std::istream & read | ( | std::istream & | file | ) |
Read the matrix from an input stream.
| file | Input stream from which to read |
| std::ostream & write | ( | std::ostream & | os, |
| Tag::FileFormat | f = Tag::FileFormat::Plain ) const |
Write the matrix to an output stream.
| os | Output stream to which to write |
| f | write in some format (Tag::FileFormat::Format). Default is MM's. |
| void setEntry | ( | size_t | i, |
| size_t | j, | ||
| const Element & | a_ij ) |
| BlasSubmatrix< _Matrix >::Element & refEntry | ( | size_t | i, |
| size_t | j ) |
Get a writeable reference to an entry in the matrix.
| i | Row index of entry |
| j | Column index of entry |
| const BlasSubmatrix< _Matrix >::Element & getEntry | ( | size_t | i, |
| size_t | j ) const |
Get a read-only individual entry from the matrix.
| i | Row index |
| j | Column index |
| BlasSubmatrix< _Matrix >::Element & getEntry | ( | Element & | x, |
| size_t | i, | ||
| size_t | j ) const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
pointer to the first elt of the submatrix
|
protected |
row dimension of Submatrix
|
protected |
col dimension of Submatrix
|
protected |
stride of the original matrix
|
protected |