Files
solver/MbDCode/MatrixLDU.cpp
2023-06-30 19:48:30 -06:00

18 lines
355 B
C++

#include "MatrixLDU.h"
using namespace MbD;
FColDsptr MatrixLDU::forAndBackSubsaveOriginal(FColDsptr fullCol, bool saveOriginal)
{
if (saveOriginal) {
rightHandSideB = fullCol->copy();
}
else {
rightHandSideB = fullCol;
}
this->applyRowOrderOnRightHandSideB();
this->forwardSubstituteIntoL();
this->backSubstituteIntoDU();
return answerX;
}