FEMTIC
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
DoubleSparseSquareMatrix Class Referenceabstract

#include <DoubleSparseSquareMatrix.h>

Inheritance diagram for DoubleSparseSquareMatrix:
Inheritance graph
[legend]
Collaboration diagram for DoubleSparseSquareMatrix:
Collaboration graph
[legend]

Public Member Functions

 DoubleSparseSquareMatrix ()
 
 DoubleSparseSquareMatrix (const int nEq, const int nRhs=1)
 
virtual ~DoubleSparseSquareMatrix ()
 
virtual void setNumRowsAndColumns (const int nrows, const int ncols)
 
void setDegreeOfEquation (const int nEq)
 
void initializeMatrixAndRhsVectors (const int nEq, const int nRhs)
 
virtual void initializeMatrixSolver (const std::string &oocHeaderName, const int imode)=0
 
void analysisPhaseMatrixSolver ()
 
void factorizationPhaseMatrixSolver ()
 
void solvePhaseMatrixSolver (double *solution, const long long iRhsStart, const int nRhs)
 
void solvePhaseMatrixSolver (double *solution)
 
void solvePhaseMatrixSolver (const int nrhs, double *rhs, double *solution)
 
void releaseMemoryMatrixSolver ()
 
void writeMemoryRequiredByMatrixSolver ()
 
virtual void releaseMemory ()
 
int getDegreeOfEquation () const
 
- Public Member Functions inherited from DoubleSparseMatrix
 DoubleSparseMatrix ()
 
 DoubleSparseMatrix (const int nrows, const int ncols, const int nrhs=1)
 
virtual ~DoubleSparseMatrix ()
 
virtual void setStructureByTripletFormat (const int row, const int col)
 
virtual void setStructureAndAddValueByTripletFormat (const int row, const int col, const double val)
 
void convertToCRSFormat ()
 
virtual void addNonZeroValues (const int row, const int col, const double val)
 
void zeroClearNonZeroValues ()
 
void addRightHandSideVector (const int row, const double val, const int irhs=0)
 
void zeroClearRightHandSideVector ()
 
virtual void initializeMatrixAndRhsVectors (const int nrows, const int ncols, const int nrhs)
 
int getNumRows () const
 
int getNumColumns () const
 
int getNumRightHandSideVectors () const
 
bool hasConvertedToCRSFormat () const
 
void reallocateMemoryForRightHandSideVectors (const int nrhs)
 
void copyRhsVector (double *vecOut) const
 
void debugWriteMatrix () const
 
void debugWriteRightHandSide () const
 
int getRowIndexCRS (const int iRow) const
 
int getColumnsCRS (const int iNonZero) const
 
double getValueCRS (const int iNonZero) const
 
double getRightHandSideVector (const int row, const int irhs=0) const
 
void calcMatrixVectorProduct (const double *invVec, double *outVec) const
 
void calcMatrixVectorProductUsingTransposedMatrix (const double *invVec, double *outVec) const
 

Protected Attributes

PARDISOSolverDouble m_pardisoSolver
 
- Protected Attributes inherited from DoubleSparseMatrix
int m_numRows
 
int m_numColumns
 
int m_numNonZeros
 
int m_numRightHandSideVectors
 
bool m_hasConvertedToCRSFormat
 
std::map< int, double > * m_matrixTripletFormat
 
long long int * m_rowIndex
 
long long int * m_columns
 
double * m_values
 
double * m_rightHandSideVector
 

Private Member Functions

 DoubleSparseSquareMatrix (const DoubleSparseSquareMatrix &matrix)
 
DoubleSparseSquareMatrixoperator= (const DoubleSparseSquareMatrix &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from DoubleSparseMatrix
void deleteTripletMatrix ()
 

Constructor & Destructor Documentation

◆ DoubleSparseSquareMatrix() [1/3]

DoubleSparseSquareMatrix::DoubleSparseSquareMatrix ( )
explicit

◆ DoubleSparseSquareMatrix() [2/3]

DoubleSparseSquareMatrix::DoubleSparseSquareMatrix ( const int  nEq,
const int  nRhs = 1 
)
explicit

◆ ~DoubleSparseSquareMatrix()

DoubleSparseSquareMatrix::~DoubleSparseSquareMatrix ( )
virtual

◆ DoubleSparseSquareMatrix() [3/3]

DoubleSparseSquareMatrix::DoubleSparseSquareMatrix ( const DoubleSparseSquareMatrix matrix)
private

Member Function Documentation

◆ analysisPhaseMatrixSolver()

void DoubleSparseSquareMatrix::analysisPhaseMatrixSolver ( )

◆ factorizationPhaseMatrixSolver()

void DoubleSparseSquareMatrix::factorizationPhaseMatrixSolver ( )

◆ getDegreeOfEquation()

int DoubleSparseSquareMatrix::getDegreeOfEquation ( ) const

◆ initializeMatrixAndRhsVectors()

void DoubleSparseSquareMatrix::initializeMatrixAndRhsVectors ( const int  nEq,
const int  nRhs 
)

◆ initializeMatrixSolver()

virtual void DoubleSparseSquareMatrix::initializeMatrixSolver ( const std::string &  oocHeaderName,
const int  imode 
)
pure virtual

◆ operator=()

DoubleSparseSquareMatrix & DoubleSparseSquareMatrix::operator= ( const DoubleSparseSquareMatrix rhs)
private

◆ releaseMemory()

void DoubleSparseSquareMatrix::releaseMemory ( )
virtual

Reimplemented from DoubleSparseMatrix.

◆ releaseMemoryMatrixSolver()

void DoubleSparseSquareMatrix::releaseMemoryMatrixSolver ( )

◆ setDegreeOfEquation()

void DoubleSparseSquareMatrix::setDegreeOfEquation ( const int  nEq)

◆ setNumRowsAndColumns()

void DoubleSparseSquareMatrix::setNumRowsAndColumns ( const int  nrows,
const int  ncols 
)
virtual

Reimplemented from DoubleSparseMatrix.

◆ solvePhaseMatrixSolver() [1/3]

void DoubleSparseSquareMatrix::solvePhaseMatrixSolver ( const int  nrhs,
double *  rhs,
double *  solution 
)

◆ solvePhaseMatrixSolver() [2/3]

void DoubleSparseSquareMatrix::solvePhaseMatrixSolver ( double *  solution)

◆ solvePhaseMatrixSolver() [3/3]

void DoubleSparseSquareMatrix::solvePhaseMatrixSolver ( double *  solution,
const long long  iRhsStart,
const int  nRhs 
)

◆ writeMemoryRequiredByMatrixSolver()

void DoubleSparseSquareMatrix::writeMemoryRequiredByMatrixSolver ( )

Member Data Documentation

◆ m_pardisoSolver

PARDISOSolverDouble DoubleSparseSquareMatrix::m_pardisoSolver
protected

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