7#ifndef __IPPARDISOMKLSOLVERINTERFACE_HPP__
8#define __IPPARDISOMKLSOLVERINTERFACE_HPP__
35 const std::string& prefix
56 Index numberOfNegEVals);
193 Index numberOfNegEVals
This class stores a list of user set options.
Interface to the linear solver Pardiso as distributed by Intel MKL, derived from SparseSymLinearSolve...
PardisoMatchingStrategy match_strat_
Option that controls the matching strategy.
bool initialized_
Flag indicating if internal data is initialized.
Index MTYPE_
Matrix type; real and symmetric indefinite.
virtual ~PardisoMKLSolverInterface()
Destructor.
void ** PT_
Internal data address pointers.
Index MNUM_
Actual matrix for the solution phase.
PardisoMKLSolverInterface(const PardisoMKLSolverInterface &)
Copy Constructor.
Index nonzeros_
Number of nonzeros of the matrix in triplet representation.
virtual Number * GetValuesArrayPtr()
Method returning an internal array into which the nonzero elements (in the same order as ja) will be ...
ESymSolverStatus SymbolicFactorization(const Index *ia, const Index *ja)
Call Pardiso to do the analysis phase.
void operator=(const PardisoMKLSolverInterface &)
Default Assignment Operator.
PardisoMatchingStrategy
Type for matching strategies.
bool have_symbolic_factorization_
Flag indicating if symbolic factorization has already been performed.
Index MAXFCT_
Maximal number of factors with identical nonzero structure.
virtual Index NumberOfNegEVals() const
Number of negative eigenvalues detected during last factorization.
virtual ESymSolverStatus InitializeStructure(Index dim, Index nonzeros, const Index *ia, const Index *ja)
Method for initializing internal structures.
ESymSolverStatus Solve(const Index *ia, const Index *ja, Index nrhs, Number *rhs_vals)
Call Pardiso to do the Solve.
bool skip_inertia_check_
Flag indicating if the inertia is always assumed to be correct.
Index * IPARM_
Parameter and info array for Pardiso.
Number * DPARM_
Parameter and info array for Pardiso.
virtual ESymSolverStatus MultiSolve(bool new_matrix, const Index *ia, const Index *ja, Index nrhs, Number *rhs_vals, bool check_NegEVals, Index numberOfNegEVals)
Solve operation for multiple right hand sides.
Number * a_
Array for storing the values of the matrix.
virtual bool ProvidesInertia() const
Query whether inertia is computed by linear solver.
virtual bool IncreaseQuality()
Request to increase quality of solution for next solve.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Index MSGLVL_
Message level.
ESymSolverStatus Factorization(const Index *ia, const Index *ja, bool check_NegEVals, Index numberOfNegEVals)
Call Pardiso to factorize the Matrix.
EMatrixFormat MatrixFormat() const
Query of requested matrix type that the linear solver understands.
PardisoMKLSolverInterface()
Constructor.
Index negevals_
Number of negative eigenvalues.
Index dim_
Number of rows and columns of the matrix.
bool pardiso_redo_symbolic_fact_only_if_inertia_wrong_
Flag indicating whether the symbolic factorization should only be done after perturbed elements,...
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class.
bool pardiso_repeated_perturbation_means_singular_
Flag indicating whether repeated perturbed elements even after a new symbolic factorization should be...
Template class for Smart Pointers.
Base class for interfaces to symmetric indefinite linear solvers for sparse matrices.
EMatrixFormat
Enum to specify sparse matrix format.
@ CSR_Format_1_Offset
Compressed sparse row format for upper triangular part, with 1 offset.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
ESymSolverStatus
Enum to report outcome of a linear solve.
ipindex Index
Type of all indices of vectors, matrices etc.
ipnumber Number
Type of all numbers.