PIPS-NLP
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ma27Solver Class Reference

#include <Ma27Solver.h>

Inheritance diagram for Ma27Solver:
Ma27SolverBase DoubleLinearSolver

Public Member Functions

 Ma27Solver (SparseSymMatrix *sgm, const int numOfNegEigVal_in=-1)
 
virtual void copyMatrixElements (double fact[], int lfact)
 
virtual void getIndices (int irowM[], int jcolM[])
 
virtual void solve (OoqpVector &rhs)
 
virtual void solve (GenMatrix &rhs_in)
 
- Public Member Functions inherited from Ma27SolverBase
 Ma27SolverBase (int n, int nnz)
 
double thresholdPivoting ()
 
void setThresholdPivoting (double piv)
 
double treatAsZero ()
 
void setTreatAsZero (double tol)
 
virtual void diagonalChanged (int idiag, int extent)
 
virtual int matrixChanged ()
 
virtual void basicSolve (double drhs[], int n)
 
virtual ~Ma27SolverBase ()
 
- Public Member Functions inherited from DoubleLinearSolver
 DoubleLinearSolver ()
 
virtual void solveTrans (OoqpVector &x)
 
virtual void Lsolve (OoqpVector &x)
 
virtual void Dsolve (OoqpVector &x)
 
virtual void Ltsolve (OoqpVector &x)
 
virtual ~DoubleLinearSolver ()
 

Protected Member Functions

 Ma27Solver ()
 
- Protected Member Functions inherited from Ma27SolverBase
 Ma27SolverBase ()
 
int ierror ()
 
int minimumRealWorkspace ()
 
int minimumIntWorkspace ()
 
int ma27ErrFlg ()
 
virtual void firstCall ()
 

Protected Attributes

SparseSymMatrixHandle mMat
 
- Protected Attributes inherited from Ma27SolverBase
int icntl [30]
 
int info [20]
 
double cntl [5]
 
double precision
 
int * irowM
 
int * jcolM
 
double * fact
 
int n
 
int nnz
 
int la
 
int * ikeep
 
int * iw
 
int liw
 
int * iw1
 
int * iw2
 
int nsteps
 
int maxfrt
 
double * w
 
double ipessimism
 
double rpessimism
 

Additional Inherited Members

- Public Attributes inherited from DoubleLinearSolver
int negEigVal
 
int KryIter
 

Detailed Description

implements the linear solver class using the HSL MA27 solver

Constructor & Destructor Documentation

Ma27Solver::Ma27Solver ( )
inlineprotected
Ma27Solver::Ma27Solver ( SparseSymMatrix sgm,
const int  numOfNegEigVal_in = -1 
)

sets mMat to refer to the argument sgm

Member Function Documentation

void Ma27Solver::copyMatrixElements ( double  fact[],
int  lfact 
)
virtual

copy the contents of the matrix into fact

Parameters
facton exit, contains the nonzero elements of the original matrix, stored as an array of doubles

Implements Ma27SolverBase.

void Ma27Solver::getIndices ( int  irowM[],
int  jcolM[] 
)
virtual

change format for row/column index matrices, in preparation for call to MA27 FORTRAN routines

Parameters
irowMarray of nnz elements indicating row index (in range 1..n) of the corresponding matrix element
jcolMarray of nnz elements indicating col index (in range 1..n) of the corresponding matrix element

Implements Ma27SolverBase.

void Ma27Solver::solve ( OoqpVector rhs)
virtual

version of the main solve routine that takes argument as an OoqpVector

Parameters
drhson input contains the right-hand side; on output contains the solution
ndimension of the system

Implements Ma27SolverBase.

void Ma27Solver::solve ( GenMatrix rhs_in)
virtual

Reimplemented from DoubleLinearSolver.

Member Data Documentation

SparseSymMatrixHandle Ma27Solver::mMat
protected

store as a sparse symmetric matrix


The documentation for this class was generated from the following files: