TR-mbed 1.0
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
sparse_lu.cpp File Reference
#include <Eigen/Sparse>
#include "BenchSparseUtil.h"
#include <Eigen/LU>

Macros

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

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(); }
#define X
Definition icosphere.cpp:20
#define REPEAT
Definition sparse_lu.cpp:20
#define NBTRIES
Definition sparse_lu.cpp:30

◆ DENSITY

#define DENSITY   0.01

◆ EIGEN_SUPERLU_SUPPORT

#define EIGEN_SUPERLU_SUPPORT

◆ EIGEN_UMFPACK_SUPPORT

#define EIGEN_UMFPACK_SUPPORT

◆ MINDENSITY

#define MINDENSITY   0.0004

◆ NBTRIES

#define NBTRIES   10

◆ NOGMM

#define NOGMM

◆ NOMTL

#define NOMTL

◆ REPEAT

#define REPEAT   1

◆ SIZE

#define SIZE   10

Typedef Documentation

◆ VectorX

typedef Matrix<Scalar,Dynamic,1> VectorX

Function Documentation

◆ doEigen()

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

◆ main()

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