Macros | Functions | Variables
sparse_randomsetter.cpp File Reference
#include <map>
#include <ext/hash_map>
#include <google/dense_hash_map>
#include <google/sparse_hash_map>
#include "BenchSparseUtil.h"
Include dependency graph for sparse_randomsetter.cpp:

Go to the source code of this file.

Macros

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

Functions

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

Variables

static double nentries
 
static double rtime
 

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(); }

Definition at line 33 of file sparse_randomsetter.cpp.

◆ DENSITY

#define DENSITY   0.01

Definition at line 16 of file sparse_randomsetter.cpp.

◆ EIGEN_GOOGLEHASH_SUPPORT

#define EIGEN_GOOGLEHASH_SUPPORT   1

Definition at line 4 of file sparse_randomsetter.cpp.

◆ MINDENSITY

#define MINDENSITY   0.0004

Definition at line 26 of file sparse_randomsetter.cpp.

◆ NBTRIES

#define NBTRIES   10

Definition at line 30 of file sparse_randomsetter.cpp.

◆ NOGMM

#define NOGMM

Definition at line 2 of file sparse_randomsetter.cpp.

◆ NOMTL

#define NOMTL

Definition at line 3 of file sparse_randomsetter.cpp.

◆ REPEAT

#define REPEAT   1

Definition at line 20 of file sparse_randomsetter.cpp.

◆ SIZE

#define SIZE   10000

Definition at line 12 of file sparse_randomsetter.cpp.

Function Documentation

◆ dostuff()

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

Definition at line 46 of file sparse_randomsetter.cpp.

◆ main()

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

Definition at line 66 of file sparse_randomsetter.cpp.

Variable Documentation

◆ nentries

double nentries
static

Definition at line 43 of file sparse_randomsetter.cpp.

◆ rtime

double rtime
static

Definition at line 42 of file sparse_randomsetter.cpp.

timer
static BenchTimer timer
Definition: benchmark-blocking-sizes.cpp:31
NBTRIES
#define NBTRIES
Definition: sparse_randomsetter.cpp:30
REPEAT
#define REPEAT
Definition: sparse_randomsetter.cpp:20
Eigen::BenchTimer::reset
void reset()
Definition: BenchTimer.h:75
Eigen::BenchTimer::stop
void stop()
Definition: BenchTimer.h:86


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:23