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

Go to the source code of this file.

Macros

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

Typedefs

typedef Matrix< Scalar, Dynamic, 1 > VectorX
 

Functions

template<int Backend>
void doEigen (const char *name, const EigenSparseMatrix &sm1, const VectorX &b, VectorX &x, int flags=0)
 
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_lu.cpp.

◆ DENSITY

#define DENSITY   0.01

Definition at line 16 of file sparse_lu.cpp.

◆ EIGEN_SUPERLU_SUPPORT

#define EIGEN_SUPERLU_SUPPORT

Definition at line 4 of file sparse_lu.cpp.

◆ EIGEN_UMFPACK_SUPPORT

#define EIGEN_UMFPACK_SUPPORT

Definition at line 5 of file sparse_lu.cpp.

◆ MINDENSITY

#define MINDENSITY   0.0004

Definition at line 26 of file sparse_lu.cpp.

◆ NBTRIES

#define NBTRIES   10

Definition at line 30 of file sparse_lu.cpp.

◆ NOGMM

#define NOGMM

Definition at line 8 of file sparse_lu.cpp.

◆ NOMTL

#define NOMTL

Definition at line 9 of file sparse_lu.cpp.

◆ REPEAT

#define REPEAT   1

Definition at line 20 of file sparse_lu.cpp.

◆ SIZE

#define SIZE   10

Definition at line 12 of file sparse_lu.cpp.

Typedef Documentation

◆ VectorX

typedef Matrix<Scalar,Dynamic,1> VectorX

Definition at line 41 of file sparse_lu.cpp.

Function Documentation

◆ doEigen()

template<int Backend>
void doEigen ( const char *  name,
const EigenSparseMatrix sm1,
const VectorX b,
VectorX x,
int  flags = 0 
)

Definition at line 46 of file sparse_lu.cpp.

◆ main()

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

Definition at line 72 of file sparse_lu.cpp.

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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:52