Files
solver/OndselSolver/VectorNewtonRaphson.h
John Dupuy 3952f45945 WIP: fixes mac errors and warnings (#34)
* fixes mac errors and warnings; check on TODO items

* renamed function as override was not of virtual

* removed another using

* experimental adjustment

* move fcDot to public

* renaming things
2023-11-21 08:16:25 -07:00

39 lines
1.4 KiB
C++

/***************************************************************************
* Copyright (c) 2023 Ondsel, Inc. *
* *
* This file is part of OndselSolver. *
* *
* See LICENSE file for details about copyright. *
***************************************************************************/
#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() override;
std::shared_ptr<MatrixSolver> matrixSolver;
int n;
FColDsptr xold, x, dx, y;
//std::shared_ptr<RowTypeMatrix<double>> pypx;
};
}