|
linbox
|
Public Types | |
| typedef Field::Element | Element |
| Element type. | |
| typedef Field::Element_ptr | Element_ptr |
| Pointer to Element type. | |
| typedef Field::ConstElement_ptr | ConstElement_ptr |
| Pointer to const Element type. | |
| typedef _Storage | RawStorage |
| Actually a std::vector<Element> (or alike: cstor(n), cstor(n, val), operator[], resize(n).) | |
| typedef BlasVector< Field, RawStorage > | Storage |
Actually a BlasVector of a std::vector<Element> (or alike: cstor(n), cstor(n, val), operator[], resize(n).) | |
| typedef BlasMatrix< Field, RawStorage > | Self_t |
| Self type. | |
| typedef Self_t | matrixType |
| matrix type | |
Public Member Functions | |
| void | init (const size_t &r=0, const size_t &c=0) |
| (Re)allocates a new \( m \times n\) zero matrix (shaped and ready). | |
| void | resize (const size_t &m, const size_t &n, const Element &val=Element()) |
| Resize the matrix to the given dimensions. | |
| BlasMatrix (const Self_t &A) | |
| Copy Constructor of a matrix (copying data). | |
| BlasMatrix (const _Field &F) | |
| Allocates a new \( 0 \times 0\) matrix (shaped and ready). | |
| BlasMatrix (const _Field &F, const size_t &m, const size_t &n) | |
| Allocates a new \( m \times n\) zero matrix (shaped and ready). | |
| BlasMatrix (MatrixStream< _Field > &ms) | |
| Constructor from a matrix stream. | |
| BlasMatrix (const Matrix &A) | |
| Generic copy constructor from either a blackbox or a matrix container. | |
| BlasMatrix (const Matrix &A, const size_t &i0, const size_t &j0, const size_t &m, const size_t &n) | |
| Generic copy constructor from either a blackbox or a matrix container (allow submatrix). | |
| BlasMatrix (const Field &F, VectorStream< StreamVector > &stream) | |
| Constructor using a finite vector stream (stream of the rows). | |
| BlasMatrix (const _Field &F, const size_t &m, const size_t &n, const constIterator &it) | |
| Create a BlasMatrix from an iterator of elements. | |
| BlasMatrix (const _Matrix &A, const _Field &F) | |
| Create a BlasMatrix from another matrix defined over a different field (use homomorphism if it exists) | |
| ~BlasMatrix () | |
| Destructor. | |
| Self_t & | operator= (const Self_t &A) |
| operator = (copying data) | |
| Self_t & | operator= (const _Matrix &A) |
| operator = (copying data from different matrix type) | |
| 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. | |
| ConstElement_ptr | getPointer () const |
| | |
| void | setEntry (size_t i, size_t j, const Element &a_ij) |
| Set the entry at the (i, j) position to a_ij. | |
| Element & | refEntry (size_t i, size_t j) |
| Get a writeable reference to the entry in the (i, j) position. | |
| const Element & | getEntry (size_t i, size_t j) const |
| Get a read-only reference to the entry in the (i, j) position. | |
| Element & | getEntry (Element &x, size_t i, size_t j) const |
| Copy the (i, j) entry into x, and return a reference to x. | |
| const _Field & | field () const |
| get a read only reference to the field of the matrix | |
| std::istream & | read (std::istream &file) |
| Read the matrix from an input stream. | |
| std::ostream & | write (std::ostream &os, Tag::FileFormat f=Tag::FileFormat::MatrixMarket) const |
| Write the matrix to an output stream. | |
Raw Indexed iterator | |
Like the raw iterator, the indexed iterator is a method for accessing all entries in the matrix in some unspecified order. At each position of the the indexed iterator, it also provides the row and column indices of the currently referenced entry. This is provided through it's | |
| subVectorType | operator[] (size_t i) |
| Retrieve a reference to a row. | |
| Vector & | columnDensity (Vector &v) const |
| Compute column density. | |
| size_t | size () const |
| Compute the number of non zero elt. | |
| void | finalize () |
| Finalize some optimization in the matrix storage. | |
Rebind operator.
| using IndexedIterator |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
| using ConstIndexedIterator |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
Resize the matrix to the given dimensions.
The state of the matrix's entries after a call to this method is undefined
| m | Number of rows |
| n | Number of columns |
| val |
| BlasMatrix | ( | const Self_t & | A | ) |
Copy Constructor of a matrix (copying data).
| A | matrix to be copied. |
| BlasMatrix | ( | const _Field & | F, |
| const size_t & | m, | ||
| const size_t & | n ) |
Allocates a new \( m \times n\) zero matrix (shaped and ready).
| F | |
| m | rows |
| n | cols |
| BlasMatrix | ( | MatrixStream< _Field > & | ms | ) |
Constructor from a matrix stream.
| ms | matrix stream. |
| BlasMatrix | ( | const Matrix & | A | ) |
Generic copy constructor from either a blackbox or a matrix container.
| A | matrix to be copied |
| BlasMatrix | ( | const Matrix & | A, |
| const size_t & | i0, | ||
| const size_t & | j0, | ||
| const size_t & | m, | ||
| const size_t & | n ) |
Generic copy constructor from either a blackbox or a matrix container (allow submatrix).
| A | matrix to be copied |
| i0 | |
| j0 | |
| m | rows |
| n | columns |
| BlasMatrix | ( | const Field & | F, |
| VectorStream< StreamVector > & | stream ) |
Constructor using a finite vector stream (stream of the rows).
| F | The field of entries; passed so that arithmetic may be done on elements |
| stream | A vector stream to use as a source of vectors for this matrix |
| BlasMatrix | ( | const _Field & | F, |
| const size_t & | m, | ||
| const size_t & | n, | ||
| const constIterator & | it ) |
Create a BlasMatrix from an iterator of elements.
| F | |
| m | |
| n | |
| it |
| BlasMatrix | ( | const _Matrix & | A, |
| const _Field & | F ) |
Create a BlasMatrix from another matrix defined over a different field (use homomorphism if it exists)
| F | Field of the created nmatrix |
| A | matrix to be copied |
|
inline |
Get the number of rows in the matrix.
|
inline |
Get the number of columns in the matrix.
|
inline |
Set the entry at the (i, j) position to a_ij.
| i | Row number, 0...rowdim () - 1 |
| j | Column number 0...coldim () - 1 |
| a_ij | Element to set |
|
inline |
Get a writeable reference to the entry in the (i, j) position.
| i | Row index of entry |
| j | Column index of entry |
|
inline |
Get a read-only reference to the entry in the (i, j) position.
| i | Row index |
| j | Column index |
Copy the (i, j) entry into x, and return a reference to x.
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 |
| std::istream & read | ( | std::istream & | file | ) |
Read the matrix from an input stream.
The stream is in SMS, DENSE, or MatrixMarket format and is autodetected.
| file | Input stream from which to read |
| std::ostream & write | ( | std::ostream & | os, |
| Tag::FileFormat | f = Tag::FileFormat::MatrixMarket ) 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 Maple's. |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |
|
inline |
Retrieve a reference to a row.
Since rows may also be indexed, this allows A[i][j] notation to be used.
| i | Row index |