Macros | Typedefs | Functions
sparse_trisolver.cpp File Reference
#include "BenchSparseUtil.h"
Include dependency graph for sparse_trisolver.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 REPEAT   1
 
#define SIZE   10000
 

Typedefs

typedef SparseMatrix< Scalar, UpperTriangular > EigenSparseTriMatrix
 
typedef SparseMatrix< Scalar, RowMajorBit|UpperTriangular > EigenSparseTriMatrixRow
 

Functions

void fillMatrix (float density, int rows, int cols, EigenSparseTriMatrix &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 29 of file sparse_trisolver.cpp.

◆ DENSITY

#define DENSITY   0.01

Definition at line 12 of file sparse_trisolver.cpp.

◆ MINDENSITY

#define MINDENSITY   0.0004

Definition at line 22 of file sparse_trisolver.cpp.

◆ NBTRIES

#define NBTRIES   10

Definition at line 26 of file sparse_trisolver.cpp.

◆ REPEAT

#define REPEAT   1

Definition at line 16 of file sparse_trisolver.cpp.

◆ SIZE

#define SIZE   10000

Definition at line 8 of file sparse_trisolver.cpp.

Typedef Documentation

◆ EigenSparseTriMatrix

typedef SparseMatrix<Scalar,UpperTriangular> EigenSparseTriMatrix

Definition at line 37 of file sparse_trisolver.cpp.

◆ EigenSparseTriMatrixRow

typedef SparseMatrix<Scalar,RowMajorBit|UpperTriangular> EigenSparseTriMatrixRow

Definition at line 38 of file sparse_trisolver.cpp.

Function Documentation

◆ fillMatrix()

void fillMatrix ( float  density,
int  rows,
int  cols,
EigenSparseTriMatrix dst 
)

Definition at line 40 of file sparse_trisolver.cpp.

◆ main()

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

Definition at line 56 of file sparse_trisolver.cpp.

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


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