Files
solver/MbDCode/MatrixLDU.cpp
2023-08-08 18:51:19 -06:00

26 lines
897 B
C++

/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#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;
}