15 #include <unordered_map>
18 #include <dpsim/Config.h>
19 #include <dpsim/Definitions.h>
20 #include <dpsim/DirectLinearSolver.h>
24 Eigen::PartialPivLU<Matrix> LUFactorized;
35 std::vector<std::pair<UInt, UInt>>
36 &listVariableSystemMatrixEntries)
override;
39 void factorize(SparseMatrix &systemMatrix)
override;
42 void refactorize(SparseMatrix &systemMatrix)
override;
46 std::vector<std::pair<UInt, UInt>>
47 &listVariableSystemMatrixEntries)
override;
50 Matrix
solve(Matrix &rightSideVector)
override;
void partialRefactorize(SparseMatrix &systemMatrix, std::vector< std::pair< UInt, UInt >> &listVariableSystemMatrixEntries) override
partial refactorization withouth partial pivoting
void factorize(SparseMatrix &systemMatrix) override
factorization function with partial pivoting
~DenseLUAdapter() override
Destructor.
void refactorize(SparseMatrix &systemMatrix) override
refactorization without partial pivoting
Matrix solve(Matrix &rightSideVector) override
solution function for a right hand side
void preprocessing(SparseMatrix &systemMatrix, std::vector< std::pair< UInt, UInt >> &listVariableSystemMatrixEntries) override
preprocessing function pre-ordering and scaling the matrix
DirectLinearSolver()=default
Constructor.