Files
solver/MbDCode/VectorNewtonRaphson.h
2023-06-11 07:15:20 -06:00

31 lines
866 B
C++

#pragma once
#include "NewtonRaphson.h"
#include "MatrixSolver.h"
namespace MbD {
class VectorNewtonRaphson : public NewtonRaphson
{
//matrixSolver n
public:
void initializeGlobally() override;
void run() override;
virtual std::shared_ptr<MatrixSolver> matrixSolverClassNew();
void fillY() override;
void calcyNorm() override;
void solveEquations() override;
void updatexold() override;
void calcdxNorm() override;
bool isConverged() override;
void xEqualxoldPlusdx() override;
virtual void basicSolveEquations() = 0;
virtual void handleSingularMatrix();
std::shared_ptr<MatrixSolver> matrixSolver;
int n;
std::shared_ptr<FullColumn<double>> xold, x, dx, y;
//std::shared_ptr<RowTypeMatrix<double>> pypx;
};
}