Macros | Typedefs | Functions
sparse_cholesky.cpp File Reference
#include <iostream>
#include <Eigen/Sparse>
#include "BenchSparseUtil.h"
#include <Eigen/Cholesky>
Include dependency graph for sparse_cholesky.cpp:

Go to the source code of this file.

Macros

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

Typedefs

typedef SparseMatrix< Scalar, SelfAdjoint|LowerTriangular > EigenSparseSelfAdjointMatrix
 

Functions

template<int Backend>
void doEigen (const char *name, const EigenSparseSelfAdjointMatrix &sm1, int flags=0)
 
void fillSpdMatrix (float density, int rows, int cols, EigenSparseSelfAdjointMatrix &dst)
 
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(); }

Definition at line 33 of file sparse_cholesky.cpp.

◆ DENSITY

#define DENSITY   0.01

Definition at line 16 of file sparse_cholesky.cpp.

◆ MINDENSITY

#define MINDENSITY   0.0004

Definition at line 26 of file sparse_cholesky.cpp.

◆ NBTRIES

#define NBTRIES   10

Definition at line 30 of file sparse_cholesky.cpp.

◆ NOGMM

#define NOGMM

Definition at line 8 of file sparse_cholesky.cpp.

◆ NOMTL

#define NOMTL

Definition at line 9 of file sparse_cholesky.cpp.

◆ REPEAT

#define REPEAT   1

Definition at line 20 of file sparse_cholesky.cpp.

◆ SIZE

#define SIZE   10

Definition at line 12 of file sparse_cholesky.cpp.

Typedef Documentation

◆ EigenSparseSelfAdjointMatrix

typedef SparseMatrix<Scalar,SelfAdjoint|LowerTriangular> EigenSparseSelfAdjointMatrix

Definition at line 42 of file sparse_cholesky.cpp.

Function Documentation

◆ doEigen()

template<int Backend>
void doEigen ( const char *  name,
const EigenSparseSelfAdjointMatrix sm1,
int  flags = 0 
)

Definition at line 64 of file sparse_cholesky.cpp.

◆ fillSpdMatrix()

void fillSpdMatrix ( float  density,
int  rows,
int  cols,
EigenSparseSelfAdjointMatrix dst 
)

Definition at line 44 of file sparse_cholesky.cpp.

◆ main()

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

Definition at line 77 of file sparse_cholesky.cpp.

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


gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:11:43