linbox
test-rank.h File Reference

no doc More...

#include "linbox/linbox-config.h"
#include <iostream>
#include <fstream>
#include <cstdio>
#include "linbox/ring/modular.h"
#include "linbox/util/commentator.h"
#include "linbox/field/gf2.h"
#include "linbox/blackbox/diagonal.h"
#include "linbox/matrix/sparse-matrix.h"
#include "linbox/blackbox/scalar-matrix.h"
#include "linbox/blackbox/direct-sum.h"
#include "linbox/algorithms/gauss.h"
#include "linbox/algorithms/gauss-gf2.h"
#include "linbox/solutions/rank.h"
#include "test-common.h"

Macros

#define LINBOX_USE_BLACKBOX_THRESHOLD   100
 
#define LINBOX_COO_TRANSPOSE   100 /* this is supposed to be triggerd half the time */
 
#define LINBOX_CSR_TRANSPOSE   100 /* this is supposed to be triggerd half the time */
 
#define LINBOX_ELL_TRANSPOSE   100 /* this is supposed to be triggerd half the time */
 
#define LINBOX_ELLR_TRANSPOSE   100 /* this is supposed to be triggerd half the time */
 

Functions

template<class BlackBox>
bool testRankMethods (const typename BlackBox::Field &F, size_t n, size_t m, unsigned int iterations, double sparsity=0.05)
 
template<class Field>
bool testZeroAndIdentRank (const Field &F, size_t n, unsigned int iterations=1)
 
template<class Field>
bool testSparseRank (const Field &F, const size_t &n, size_t m, const size_t &iterations, const double &sparsity)
 

Detailed Description

no doc

Test

bool testSparseRank(const Field &F, const size_t & n, size_t m, const size_t & iterations, const double & sparsity)

bool testRankMethods(const typename BlackBox::Field & F, size_t n, size_t m, unsigned int iterations, double sparsity = 0.05)

bool testRankMethodsGF2(const GF2& F2, size_t n, unsigned int iterations, double sparsity = 0.05)

bool testZeroAndIdentRank (const Field &F, size_t n, unsigned int iterations = 1)

Macro Definition Documentation

◆ LINBOX_USE_BLACKBOX_THRESHOLD

#define LINBOX_USE_BLACKBOX_THRESHOLD   100

◆ LINBOX_COO_TRANSPOSE

#define LINBOX_COO_TRANSPOSE   100 /* this is supposed to be triggerd half the time */

◆ LINBOX_CSR_TRANSPOSE

#define LINBOX_CSR_TRANSPOSE   100 /* this is supposed to be triggerd half the time */

◆ LINBOX_ELL_TRANSPOSE

#define LINBOX_ELL_TRANSPOSE   100 /* this is supposed to be triggerd half the time */

◆ LINBOX_ELLR_TRANSPOSE

#define LINBOX_ELLR_TRANSPOSE   100 /* this is supposed to be triggerd half the time */

Function Documentation

◆ testRankMethods()

template<class BlackBox>
bool testRankMethods ( const typename BlackBox::Field & F,
size_t n,
size_t m,
unsigned int iterations,
double sparsity = 0.05 )

◆ testZeroAndIdentRank()

template<class Field>
bool testZeroAndIdentRank ( const Field & F,
size_t n,
unsigned int iterations = 1 )

◆ testSparseRank()

template<class Field>
bool testSparseRank ( const Field & F,
const size_t & n,
size_t m,
const size_t & iterations,
const double & sparsity )