Lines Matching defs:refX
126 Stats call_solver(Solver &solver, const typename Solver::MatrixType& A, const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX)
158 if(refX.size() != 0)
159 stat.rel_error = (refX - x).norm()/refX.norm();
180 Stats call_directsolver(Solver& solver, const typename Solver::MatrixType& A, const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX)
183 stat = call_solver(solver, A, b, refX);
188 Stats call_itersolver(Solver &solver, const typename Solver::MatrixType& A, const Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX)
194 stat = call_solver(solver, A, b, refX);
287 int SelectSolvers(const SparseMatrix<Scalar>&A, unsigned int sym, Matrix<Scalar, Dynamic, 1>& b, const Matrix<Scalar, Dynamic, 1>& refX, Stats *stat)
298 stat[EIGEN_UMFPACK] = call_directsolver(solver, A, b, refX);
307 stat[EIGEN_SUPERLU] = call_directsolver(solver, A, b, refX);
317 stat[EIGEN_PASTIX] = call_directsolver(solver, A, b, refX) ;
327 stat[EIGEN_PARDISO] = call_directsolver(solver, A, b, refX);
338 stat[EIGEN_BICGSTAB] = call_itersolver(solver, A, b, refX);
346 stat[EIGEN_BICGSTAB_ILUT] = call_itersolver(solver, A, b, refX);
356 // stat[EIGEN_GMRES] = call_itersolver(solver, A, b, refX);
364 stat[EIGEN_GMRES_ILUT] = call_itersolver(solver, A, b, refX);
376 stat[EIGEN_SIMPLICIAL_LDLT] = call_directsolver(solver, A, b, refX);
386 stat[EIGEN_CHOLMOD_LDLT] = call_directsolver(solver, A, b, refX);
396 stat[EIGEN_PASTIX_LDLT] = call_directsolver(solver, A, b, refX);
406 stat[EIGEN_PARDISO_LDLT] = call_directsolver(solver, A, b, refX);
420 stat[EIGEN_SIMPLICIAL_LLT] = call_directsolver(solver, A, b, refX);
431 stat[EIGEN_CHOLMOD_SUPERNODAL_LLT] = call_directsolver(solver, A, b, refX);
436 stat[EIGEN_CHOLMOD_SIMPLICIAL_LLT] = call_directsolver(solver, A, b, refX);
446 stat[EIGEN_PASTIX_LLT] = call_directsolver(solver, A, b, refX);
456 stat[EIGEN_PARDISO_LLT] = call_directsolver(solver, A, b, refX);
465 stat[EIGEN_CG] = call_itersolver(solver, A, b, refX);
473 // stat[EIGEN_CG_PRECOND] = call_itersolver(solver, A, b, refX);
506 Matrix<Scalar, Dynamic, 1> refX;
507 if(it.hasrefX()) refX = it.refX();
508 best_time_id = SelectSolvers<Scalar>(it.matrix(), it.sym(), it.rhs(), refX, &stat[0]);