1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
#ifndef BENCH_AUX_H
#define BENCH_AUX_H 1

//-- timer for benchmarks ------------------------------------------------------

double
walltime();

//-- setup and print matrices --------------------------------------------------

void
initGeMatrix(int m, int n, double *A, int incRowA, int incColA);

void
randGeMatrix(int m, int n, double *A, int incRowA, int incColA);

void
makeTrlDiagDom(int n, int unitDiag, double *A, int incRowA, int incColA);

void
makeGeDiagDom(int n, int m, double *A, int incRowA, int incColA);

void
printGeMatrix(int m, int n, const double *A, int incRowA, int incColA);

void
printTrMatrix(int m, int n, int unitDiag, int lower,
              const double *A, int incRowA, int incColA);

#endif // BENCH_AUX_H