Files
solver/MbDCode/MatrixLDU.cpp
Aik-Siong Koh 371b13a9e0 runVelIC
2023-06-18 01:06:39 -06:00

18 lines
360 B
C++

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