linbox
Namespaces | Functions
test-matrix-utils.h File Reference

Utilities for tests on matrices. More...

#include "fflas-ffpack/utils/Matio.h"
+ Include dependency graph for test-matrix-utils.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 LinBox
 Namespace in which all linbox code resides.
 

Functions

size_t & RandIntInInt (const size_t &s, size_t &RIII, const int &seed=0)
 gives a random number such that $0 \leq RIII < s$. More...
 
void RandomPermutation (size_t *P, const size_t &len)
 Creates a random Lapack style Permutation P of size len.
 
template<class Field >
bool CheckRank (const Field &F, const typename Field ::Element *A, const size_t &m, const size_t &n, const size_t &lda, const size_t &alledged_rank)
 Checks we got the right rank. More...
 
template<class Field >
void RandomMatrixWithRank (const Field &F, typename Field ::Element *A, const size_t &m, const size_t &n, const size_t &lda, const size_t &rank)
 Builds a m x n random matrix of rank rank over field F.
 
template<class Field >
void RandomMatrixWithDet (const Field &F, typename Field ::Element *A, const size_t &m, const size_t &lda, const typename Field ::Element &det)
 Builds a m x m random matrix of determinant det over field F. More...
 

Detailed Description

Utilities for tests on matrices.

Warning
this should better written and shared among the tests
Bug:
put in matrix/random-matrix.h