8#ifndef __IPITERATIVEWSMPSOLVERINTERFACE_HPP__
9#define __IPITERATIVEWSMPSOLVERINTERFACE_HPP__
34 const std::string& prefix
55 Index numberOfNegEVals
181 Index numberOfNegEVals
int ipindex
Type of all indices of vectors, matrices etc.
Interface to the linear solver WISMP, derived from SparseSymLinearSolverInterface.
double * a_
Array for storing the values of the matrix.
ESymSolverStatus SymbolicFactorization(const Index *ia, const Index *ja)
Call Wsmp to do the analysis phase.
ESymSolverStatus InternalSymFact(const Index *ia, const Index *ja)
Call Wsmp to really do the analysis phase.
virtual ~IterativeWsmpSolverInterface()
Destructor.
Number wsmp_pivtolmax_
Maximal pivot tolerance.
bool initialized_
Flag indicating if internal data is initialized.
virtual double * GetValuesArrayPtr()
Method returning an internal array into which the nonzero elements (in the same order as ja) will be ...
Index matrix_file_number_
Counter for matrix file numbers.
ESymSolverStatus Solve(const Index *ia, const Index *ja, Index nrhs, double *rhs_vals)
Call Wsmpx to do the Solve.
ipindex * IPARM_
Integer parameter array for WISMP.
bool pivtol_changed_
Flag indicating if the matrix has to be refactorized because the pivot tolerance has been changed.
Index wsmp_write_matrix_iteration_
iteration number in which matrices are to be written out
IterativeWsmpSolverInterface(const IterativeWsmpSolverInterface &)
Copy Constructor.
bool have_symbolic_factorization_
Flag indicating whether symbolic factorization and order has already been performed.
virtual bool IncreaseQuality()
Request to increase quality of solution for next solve.
Index wsmp_num_threads_
Option that controls the matching strategy.
virtual bool ProvidesInertia() const
Query whether inertia is computed by linear solver.
EMatrixFormat MatrixFormat() const
Query of requested matrix type that the linear solver understands.
Index wsmp_scaling_
Indicating which of WSMP's scaling methods should be used.
IterativeWsmpSolverInterface()
Constructor.
double * DPARM_
Double precision parameter array for WISMP.
virtual ESymSolverStatus MultiSolve(bool new_matrix, const Index *ia, const Index *ja, Index nrhs, double *rhs_vals, bool check_NegEVals, Index numberOfNegEVals)
Solve operation for multiple right hand sides.
virtual ESymSolverStatus InitializeStructure(Index dim, Index nonzeros, const Index *ia, const Index *ja)
Method for initializing internal structures.
ESymSolverStatus Factorization(const Index *ia, const Index *ja, bool check_NegEVals, Index numberOfNegEVals)
Call Wsmp to factorize the Matrix.
virtual Index NumberOfNegEVals() const
Number of negative eigenvalues detected during last factorization.
Number wsmp_inexact_droptol_
Number wsmp_inexact_fillin_limit_
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class.
Number wsmp_pivtol_
Pivot tolerance.
void operator=(const IterativeWsmpSolverInterface &)
Default Assignment Operator.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Index dim_
Number of rows and columns of the matrix.
This class stores a list of user set options.
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.