FflasFfpack
Namespaces | Functions
fflas_randommatrix.h File Reference

Utilities to create matrices with prescribed shapes, properties,... More...

#include "fflas-ffpack/fflas-ffpack-config.h"
#include "fflas-ffpack/utils/debug.h"
#include "fflas-ffpack/ffpack/ffpack.h"
#include <givaro/givinteger.h>
#include <givaro/givintprime.h>
#include <givaro/givranditer.h>
#include <chrono>
#include <random>

Namespaces

 FFPACK
 Finite Field PACK Set of elimination based routines for dense linear algebra.
 

Functions

template<class Field >
Field::Element * RandomMatrix (const Field &F, typename Field::Element *A, size_t m, size_t n, size_t lda, size_t b=0)
 Random Matrix. More...
 
size_t RandInt (size_t a, size_t b)
 Random integer in range. More...
 
template<class Field >
Field::Element_ptr RandomMatrixWithRank (const Field &F, typename Field::Element_ptr A, size_t lda, size_t r, size_t m, size_t n)
 Random Matrix with prescribed rank. More...
 
void RandomRankProfile (size_t N, size_t R, size_t *rkp)
 
template<class Field >
void RandomMatrixWithRankandRPM (const Field &F, typename Field::Element_ptr A, size_t lda, size_t R, size_t M, size_t N, const size_t *RRP, const size_t *CRP)
 
template<class Field >
void RandomMatrixWithRankandRandomRPM (const Field &F, typename Field::Element_ptr A, size_t lda, size_t R, size_t M, size_t N)
 Random Matrix with prescribed rank, with random rank profile matrix Creates an m x n matrix with random entries, rank r and with a rank profile matrix chosen uniformly at random. More...
 
template<class Field >
Field::Element * RandomMatrixWithDet (const Field &F, typename Field::Element *A, typename Field::Element d, size_t n, size_t lda)
 Random Matrix with prescribed det. More...
 

Detailed Description

Utilities to create matrices with prescribed shapes, properties,...

To be used in benchmarks/tests