//g++ -O3 -g0 -DNDEBUG sparse_transpose.cpp -I.. -I/home/gael/Coding/LinearAlgebra/mtl4/ -DDENSITY=0.005 -DSIZE=10000 && ./a.out // -DNOGMM -DNOMTL // -DCSPARSE -I /home/gael/Coding/LinearAlgebra/CSparse/Include/ /home/gael/Coding/LinearAlgebra/CSparse/Lib/libcsparse.a #ifndef SIZE #define SIZE 10000 #endif #ifndef DENSITY #define DENSITY 0.01 #endif #ifndef REPEAT #define REPEAT 1 #endif #include "BenchSparseUtil.h" #ifndef MINDENSITY #define MINDENSITY 0.0004 #endif #ifndef NBTRIES #define NBTRIES 10 #endif #define BENCH(X) \ timer.reset(); \ for (int _j=0; _j=MINDENSITY; density*=0.5) { fillMatrix(density, rows, cols, sm1); // dense matrices #ifdef DENSEMATRIX { DenseMatrix m1(rows,cols), m3(rows,cols); eiToDense(sm1, m1); BENCH(for (int k=0; k