TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Functions
sparse_randomsetter.cpp File Reference
#include <map>
#include <ext/hash_map>
#include <google/dense_hash_map>
#include <google/sparse_hash_map>
#include "BenchSparseUtil.h"

Macros

#define NOGMM
 
#define NOMTL
 
#define EIGEN_GOOGLEHASH_SUPPORT   1
 
#define SIZE   10000
 
#define DENSITY   0.01
 
#define REPEAT   1
 
#define MINDENSITY   0.0004
 
#define NBTRIES   10
 
#define BENCH(X)
 

Functions

template<typename SetterType >
void dostuff (const char *name, EigenSparseMatrix &sm1)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ BENCH

#define BENCH (   X)
Value:
timer.reset(); \
for (int _j=0; _j<NBTRIES; ++_j) { \
timer.start(); \
for (int _k=0; _k<REPEAT; ++_k) { \
X \
} timer.stop(); }
#define X
Definition icosphere.cpp:20
#define REPEAT
Definition sparse_randomsetter.cpp:20
#define NBTRIES
Definition sparse_randomsetter.cpp:30

◆ DENSITY

#define DENSITY   0.01

◆ EIGEN_GOOGLEHASH_SUPPORT

#define EIGEN_GOOGLEHASH_SUPPORT   1

◆ MINDENSITY

#define MINDENSITY   0.0004

◆ NBTRIES

#define NBTRIES   10

◆ NOGMM

#define NOGMM

◆ NOMTL

#define NOMTL

◆ REPEAT

#define REPEAT   1

◆ SIZE

#define SIZE   10000

Function Documentation

◆ dostuff()

template<typename SetterType >
void dostuff ( const char *  name,
EigenSparseMatrix sm1 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)