linbox
|
Triangular BLAS matrix. More...
#include <blas-matrix.h>
Inherits BlasSubmatrix< _Matrix >.
Public Types | |
typedef Field::Element | Element |
Element type. | |
typedef MatrixEltPointer< _Matrix >::pointer | pointer |
pointer type to elements | |
typedef MatrixEltPointer< const _Matrix >::pointer | const_pointer |
const pointer type to elements | |
Public Member Functions | |
TriangularBlasMatrix (Matrix &A, Tag::Shape x=Tag::Shape::Upper, Tag::Diag y=Tag::Diag::NonUnit) | |
Constructor from a Matrix (share data from the matrix) More... | |
Tag::Shape | getUpLo () const |
get the shape of the matrix (upper or lower) | |
Tag::Diag | getDiag () const |
Is the diagonal implicitly unit ? | |
template<class _AnyMatrix > | |
Self_t & | copy (const _AnyMatrix &A) |
(copying data) -> works only if dimensions are the same | |
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... | |
const Field & | field () const |
Get the field of the BlasSubMatrix. More... | |
pointer | getPointer () |
| |
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::Plain) const |
Write the matrix to an output stream. More... | |
void | 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... | |
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 |
Protected Attributes | |
Tag::Shape | _uplo |
upper or lower triangular | |
Tag::Diag | _diag |
unit or non unit diagonal | |
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 | |
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 = BlasMatrixIterator< Field, Storage, subVectorType > |
operator[]. More... | |
using | ConstColIterator = BlasMatrixIterator< Field, Storage, constSubVectorType > |
operator[]. More... | |
using | IndexedIterator = BlasMatrixIndexedIterator< Field, pointer, Element > |
operator[]. More... | |
using | ConstIndexedIterator = BlasMatrixIndexedIterator< Field, const_pointer, const Element > |
operator[]. More... | |
ColIterator | colBegin () |
operator[]. More... | |
ConstColIterator | colBegin () const |
operator[]. More... | |
ColIterator | colEnd () |
operator[]. More... | |
ConstColIterator | colEnd () const |
operator[]. More... | |
Iterator | Begin () |
operator[]. More... | |
ConstIterator | Begin () const |
operator[]. More... | |
Iterator | End () |
operator[]. More... | |
ConstIterator | End () const |
operator[]. More... | |
IndexedIterator | IndexedBegin () |
operator[]. More... | |
ConstIndexedIterator | IndexedBegin () const |
operator[]. More... | |
IndexedIterator | IndexedEnd () |
operator[]. More... | |
ConstIndexedIterator | IndexedEnd () const |
operator[]. More... | |
subVectorType | operator[] (size_t i) |
operator[]. More... | |
constSubVectorType | operator[] (size_t i) const |
operator[]. More... | |
Triangular BLAS matrix.
|
inherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inline |
Constructor from a Matrix
(share data from the matrix)
A | matrix |
y | (non)unit diagonal |
x | (upp/low)er matrix |
|
inlineinherited |
Get the number of rows in the matrix.
|
inlineinherited |
Get the number of columns in the matrix.
|
inlineinherited |
Get the stride of the matrix.
|
inlineinherited |
Get the field of the BlasSubMatrix.
|
inherited |
Read the matrix from an input stream.
file | Input stream from which to read |
|
inherited |
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. |
|
inherited |
Set the entry at (i, j).
i | Row number, 0...rowdim () - 1 |
j | Column number 0...coldim () - 1 |
a_ij | Element to set |
|
inherited |
Get a writeable reference to an entry in the matrix.
i | Row index of entry |
j | Column index of entry |
|
inherited |
Get a read-only individual entry from the matrix.
i | Row index |
j | Column index |
|
inherited |
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
x | Element in which to store result |
i | Row index |
j | Column index |
|
inlineinherited |
|
inlineinherited |
use Matrix domain
since removal of ApplyDomain this does not handle the case where Field if Givaro::Extension needed for charpoly computation
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |
|
inlineinherited |
operator[].
Retrieve a reference to a row
i | Row index |