linbox
benchmark-example.C File Reference

Benchmarking example. More...

#include "benchmarks/benchmark.h"
#include "linbox/util/error.h"
#include "fflas-ffpack/fflas-ffpack.h"
#include "linbox/ring/modular.h"
#include "linbox/matrix/random-matrix.h"
#include "linbox/matrix/dense-matrix.h"
#include "linbox/matrix/matrix-domain.h"
#include "linbox/matrix/sparse-matrix.h"
#include "linbox/solutions/rank.h"
#include <givaro/modular-balanced.h>

Functions

double mm_mflops (size_t m, size_t n, size_t k)
 
template<class Field>
void launch_bench_square (Field &F, size_t min, size_t max, size_t step, PlotData &Data)
 launches the benchmarks for the square case.
 
void bench_square (size_t min, size_t max, size_t step, int charac)
 Benchmark square fgemm Y=AX for several fields.
 
template<class Field>
void launch_bench_rank (const Field &F, const std::string &name, PlotData &Data)
 
void bench_rank (int carac)
 
int main (int ac, char **av)
 

Detailed Description

Benchmarking example.

Function Documentation

◆ mm_mflops()

double mm_mflops ( size_t m,
size_t n,
size_t k )

◆ launch_bench_square()

template<class Field>
void launch_bench_square ( Field & F,
size_t min,
size_t max,
size_t step,
PlotData & Data )

launches the benchmarks for the square case.

Parameters
Ffield
minmin size to bench
maxmax size to bench
stepstep between two sizes
Datawhere data is stored
series_nbindex of the current series of measures.

◆ bench_square()

void bench_square ( size_t min,
size_t max,
size_t step,
int charac )

Benchmark square fgemm Y=AX for several fields.

Parameters
minmin size
maxmax size
stepstep of the size between 2 benchmarks
characcharacteristic of the field.

◆ launch_bench_rank()

template<class Field>
void launch_bench_rank ( const Field & F,
const std::string & name,
PlotData & Data )

◆ bench_rank()

void bench_rank ( int carac)
Bug
no gz reader ?

◆ main()

int main ( int ac,
char ** av )