linbox
|
Specialization of Diagonal for application to dense vectors. More...
#include <diagonal.h>
Public Member Functions | |
Diagonal (const Field F, const std::vector< typename Field::Element > &v) | |
cstor from vector of elements. | |
Diagonal (const Field F, const size_t n, bool nonsing=true) | |
random Diagonal matrix. | |
void | random () |
creates a random Diagonal matrix | |
void | randomNonsingular () |
creates a random non singular Diagonal matrix | |
const Field & | field () const |
the field of the entries | |
Element & | getEntry (Element &x, size_t i, size_t j) const |
Get an entry and store it in the given value. |
Specialization of Diagonal for application to dense vectors.
Diagonal | ( | const Field | F, |
const size_t | n, | ||
bool | nonsing = true |
||
) | [inline] |
random Diagonal matrix.
F | the field |
n | size |
nonsing | non-singular matrix ? (no zero on diagonal ?) |
Element& getEntry | ( | Element & | x, |
size_t | i, | ||
size_t | j | ||
) | const [inline] |
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 |