#include <boost/numeric/ublas/matrix_sparse.hpp>#include <boost/numeric/ublas/io.hpp>#include <boost/numeric/ublas/operation_sparse.hpp>#include "viennacl/scalar.hpp"#include "viennacl/vector.hpp"#include "viennacl/coordinate_matrix.hpp"#include "viennacl/compressed_matrix.hpp"#include "viennacl/ell_matrix.hpp"#include "viennacl/hyb_matrix.hpp"#include "viennacl/context.hpp"#include "viennacl/linalg/cg.hpp"#include "viennacl/linalg/bicgstab.hpp"#include "viennacl/linalg/gmres.hpp"#include "viennacl/linalg/ilu.hpp"#include "viennacl/linalg/ichol.hpp"#include "viennacl/linalg/jacobi_precond.hpp"#include "viennacl/linalg/row_scaling.hpp"#include "viennacl/io/matrix_market.hpp"#include <iostream>#include <vector>#include "benchmark-utils.hpp"Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| #define | VIENNACL_WITH_UBLAS 1 |
| #define | BENCHMARK_RUNS 1 |
Functions | |
| template<typename ScalarType > | |
| ScalarType | diff_inf (ublas::vector< ScalarType > &v1, viennacl::vector< ScalarType > &v2) |
| template<typename ScalarType > | |
| ScalarType | diff_2 (ublas::vector< ScalarType > &v1, viennacl::vector< ScalarType > &v2) |
| template<typename MatrixType , typename VectorType , typename SolverTag , typename PrecondTag > | |
| void | run_solver (MatrixType const &matrix, VectorType const &rhs, VectorType const &ref_result, SolverTag const &solver, PrecondTag const &precond, long ops) |
| template<typename ScalarType > | |
| int | run_benchmark (viennacl::context ctx) |
| int | main () |
| #define BENCHMARK_RUNS 1 |
Definition at line 66 of file solver.cpp.
| #define NDEBUG |
Definition at line 26 of file solver.cpp.
| #define VIENNACL_WITH_UBLAS 1 |
Definition at line 33 of file solver.cpp.
| ScalarType diff_2 | ( | ublas::vector< ScalarType > & | v1, |
| viennacl::vector< ScalarType > & | v2 | ||
| ) |
Definition at line 87 of file solver.cpp.
| ScalarType diff_inf | ( | ublas::vector< ScalarType > & | v1, |
| viennacl::vector< ScalarType > & | v2 | ||
| ) |
Definition at line 70 of file solver.cpp.
| int main | ( | ) |
Definition at line 578 of file solver.cpp.
| int run_benchmark | ( | viennacl::context | ctx | ) |
Definition at line 123 of file solver.cpp.
| void run_solver | ( | MatrixType const & | matrix, |
| VectorType const & | rhs, | ||
| VectorType const & | ref_result, | ||
| SolverTag const & | solver, | ||
| PrecondTag const & | precond, | ||
| long | ops | ||
| ) |
Definition at line 97 of file solver.cpp.