20 #include <unordered_map>
23 #include <dpsim/Config.h>
24 #include <dpsim/Definitions.h>
25 #include <dpsim/DirectLinearSolver.h>
30 std::vector<std::pair<UInt, UInt>> mChangedEntries;
33 std::vector<Int> mVaryingColumns;
35 std::vector<Int> mVaryingRows;
39 klu_numeric *mNumeric =
nullptr;
40 klu_symbolic *mSymbolic =
nullptr;
45 int mPreordering = AMD_ORDERING;
50 PARTIAL_REFACTORIZATION_METHOD mPartialRefactorizationMethod =
51 PARTIAL_REFACTORIZATION_METHOD::FACTORIZATION_PATH;
68 std::vector<std::pair<UInt, UInt>>
69 &listVariableSystemMatrixEntries)
override;
72 void factorize(SparseMatrix &systemMatrix)
override;
75 void refactorize(SparseMatrix &systemMatrix)
override;
79 std::vector<std::pair<UInt, UInt>>
80 &listVariableSystemMatrixEntries)
override;
83 Matrix
solve(Matrix &rightSideVector)
override;
void applyConfiguration() override
Apply configuration.
void preprocessing(SparseMatrix &systemMatrix, std::vector< std::pair< UInt, UInt >> &listVariableSystemMatrixEntries) override
preprocessing function pre-ordering and scaling the matrix
void factorize(SparseMatrix &systemMatrix) override
factorization function with partial pivoting
Matrix solve(Matrix &rightSideVector) override
solution function for a right hand side
void partialRefactorize(SparseMatrix &systemMatrix, std::vector< std::pair< UInt, UInt >> &listVariableSystemMatrixEntries) override
partial refactorization withouth partial pivoting
void refactorize(SparseMatrix &systemMatrix) override
refactorization without partial pivoting
void printMatrixMarket(SparseMatrix &systemMatrix, int counter) const
Function to print matrix in MatrixMarket's coo format.
~KLUAdapter() override
Destructor.