|
TR-mbed 1.0
|
#include <iostream>#include <fstream>#include <Eigen/SparseCore>#include <bench/BenchTimer.h>#include <cstdlib>#include <string>#include <Eigen/Cholesky>#include <Eigen/Jacobi>#include <Eigen/Householder>#include <Eigen/IterativeLinearSolvers>#include <unsupported/Eigen/IterativeSolvers>#include <Eigen/LU>#include <unsupported/Eigen/SparseExtra>#include <Eigen/SparseLU>#include "spbenchstyle.h"Go to the source code of this file.
Macros | |
| #define | EIGEN_UMFPACK 10 |
| #define | EIGEN_KLU 11 |
| #define | EIGEN_SUPERLU 20 |
| #define | EIGEN_PASTIX 30 |
| #define | EIGEN_PARDISO 40 |
| #define | EIGEN_SPARSELU_COLAMD 50 |
| #define | EIGEN_SPARSELU_METIS 51 |
| #define | EIGEN_BICGSTAB 60 |
| #define | EIGEN_BICGSTAB_ILUT 61 |
| #define | EIGEN_GMRES 70 |
| #define | EIGEN_GMRES_ILUT 71 |
| #define | EIGEN_SIMPLICIAL_LDLT 80 |
| #define | EIGEN_CHOLMOD_LDLT 90 |
| #define | EIGEN_PASTIX_LDLT 100 |
| #define | EIGEN_PARDISO_LDLT 110 |
| #define | EIGEN_SIMPLICIAL_LLT 120 |
| #define | EIGEN_CHOLMOD_SUPERNODAL_LLT 130 |
| #define | EIGEN_CHOLMOD_SIMPLICIAL_LLT 140 |
| #define | EIGEN_PASTIX_LLT 150 |
| #define | EIGEN_PARDISO_LLT 160 |
| #define | EIGEN_CG 170 |
| #define | EIGEN_CG_PRECOND 180 |
Functions | |
| template<typename T > | |
| NumTraits< T >::Real | test_precision () |
| template<> | |
| float | test_precision< float > () |
| template<> | |
| double | test_precision< double > () |
| template<> | |
| float | test_precision< std::complex< float > > () |
| template<> | |
| double | test_precision< std::complex< double > > () |
| void | printStatheader (std::ofstream &out) |
| template<typename Solver , typename Scalar > | |
| void | call_solver (Solver &solver, const int solver_id, const typename Solver::MatrixType &A, const Matrix< Scalar, Dynamic, 1 > &b, const Matrix< Scalar, Dynamic, 1 > &refX, std::ofstream &statbuf) |
| template<typename Solver , typename Scalar > | |
| void | call_directsolver (Solver &solver, const int solver_id, const typename Solver::MatrixType &A, const Matrix< Scalar, Dynamic, 1 > &b, const Matrix< Scalar, Dynamic, 1 > &refX, std::string &statFile) |
| template<typename Solver , typename Scalar > | |
| void | call_itersolver (Solver &solver, const int solver_id, const typename Solver::MatrixType &A, const Matrix< Scalar, Dynamic, 1 > &b, const Matrix< Scalar, Dynamic, 1 > &refX, std::string &statFile) |
| template<typename Scalar > | |
| void | SelectSolvers (const SparseMatrix< Scalar > &A, unsigned int sym, Matrix< Scalar, Dynamic, 1 > &b, const Matrix< Scalar, Dynamic, 1 > &refX, std::string &statFile) |
| template<typename Scalar > | |
| void | Browse_Matrices (const string folder, bool statFileExists, std::string &statFile, int maxiters, double tol) |
| bool | get_options (int argc, char **args, string option, string *value=0) |
Variables | |
| int | MaximumIters |
| double | RelErr |
| double | best_time_val |
| int | best_time_id |
| #define EIGEN_BICGSTAB 60 |
| #define EIGEN_BICGSTAB_ILUT 61 |
| #define EIGEN_CG 170 |
| #define EIGEN_CG_PRECOND 180 |
| #define EIGEN_CHOLMOD_LDLT 90 |
| #define EIGEN_CHOLMOD_SIMPLICIAL_LLT 140 |
| #define EIGEN_CHOLMOD_SUPERNODAL_LLT 130 |
| #define EIGEN_GMRES 70 |
| #define EIGEN_GMRES_ILUT 71 |
| #define EIGEN_KLU 11 |
| #define EIGEN_PARDISO 40 |
| #define EIGEN_PARDISO_LDLT 110 |
| #define EIGEN_PARDISO_LLT 160 |
| #define EIGEN_PASTIX 30 |
| #define EIGEN_PASTIX_LDLT 100 |
| #define EIGEN_PASTIX_LLT 150 |
| #define EIGEN_SIMPLICIAL_LDLT 80 |
| #define EIGEN_SIMPLICIAL_LLT 120 |
| #define EIGEN_SPARSELU_COLAMD 50 |
| #define EIGEN_SPARSELU_METIS 51 |
| #define EIGEN_SUPERLU 20 |
| #define EIGEN_UMFPACK 10 |
| void Browse_Matrices | ( | const string | folder, |
| bool | statFileExists, | ||
| std::string & | statFile, | ||
| int | maxiters, | ||
| double | tol | ||
| ) |
| void call_directsolver | ( | Solver & | solver, |
| const int | solver_id, | ||
| const typename Solver::MatrixType & | A, | ||
| const Matrix< Scalar, Dynamic, 1 > & | b, | ||
| const Matrix< Scalar, Dynamic, 1 > & | refX, | ||
| std::string & | statFile | ||
| ) |
| void call_itersolver | ( | Solver & | solver, |
| const int | solver_id, | ||
| const typename Solver::MatrixType & | A, | ||
| const Matrix< Scalar, Dynamic, 1 > & | b, | ||
| const Matrix< Scalar, Dynamic, 1 > & | refX, | ||
| std::string & | statFile | ||
| ) |
| void call_solver | ( | Solver & | solver, |
| const int | solver_id, | ||
| const typename Solver::MatrixType & | A, | ||
| const Matrix< Scalar, Dynamic, 1 > & | b, | ||
| const Matrix< Scalar, Dynamic, 1 > & | refX, | ||
| std::ofstream & | statbuf | ||
| ) |
| bool get_options | ( | int | argc, |
| char ** | args, | ||
| string | option, | ||
| string * | value = 0 |
||
| ) |
| void printStatheader | ( | std::ofstream & | out | ) |
| void SelectSolvers | ( | const SparseMatrix< Scalar > & | A, |
| unsigned int | sym, | ||
| Matrix< Scalar, Dynamic, 1 > & | b, | ||
| const Matrix< Scalar, Dynamic, 1 > & | refX, | ||
| std::string & | statFile | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| int best_time_id |
| double best_time_val |
| int MaximumIters |
| double RelErr |