#include #include #include "CMyVektor.h" class CMyMatrix { private: std::vector> matrix; int zeilen = 0; int spalten = 0; public: CMyMatrix(int zeilen, int spalten); double getZeilen(); double getSpalten(); void setWert(double wert, int zeile, int spalte); double getWert(int zeile, int spalte); double& operator()(int zeile, int spalte); CMyMatrix invers(); friend CMyVektor operator*(CMyMatrix A, CMyVektor x); friend std::ostream& operator<<(std::ostream& os, CMyMatrix x); }; CMyMatrix jacobi(CMyVektor x, CMyVektor(*funktion)(CMyVektor)); //como friend-> error de compiler "C3767" void newtonverfahren(CMyVektor x, CMyVektor(*funktion)(CMyVektor)); //libro pagina 221