linbox
Public Member Functions
Diagonal< _Field, VectorCategories::DenseVectorTag > Class Reference

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.

Detailed Description

Specialization of Diagonal for application to dense vectors.


Constructor & Destructor Documentation

Diagonal ( const Field  F,
const size_t  n,
bool  nonsing = true 
) [inline]

random Diagonal matrix.

Parameters:
Fthe field
nsize
nonsingnon-singular matrix ? (no zero on diagonal ?)

Member Function Documentation

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

Parameters:
xElement in which to store result
iRow index
jColumn index
Returns:
Reference to x

The documentation for this class was generated from the following file: