better jordan

This commit is contained in:
2024-02-02 16:10:34 +01:00
parent 6136a8f88b
commit 4b032ffaeb
6 changed files with 68 additions and 30 deletions

View File

@@ -1,13 +1,19 @@
#include "Matrix.h"
void test() {
Matrix<float> mat{"matrice3x3.mat"};
Matrix<float> mat{"matrice5x5.mat"};
mat.Print();
//mat.Save("matrice3x3.mat");
mat.GaussJordan();
// mat.Save("matrice3x3.mat");
mat.GaussJordan(true);
std::cout << "sdfdjiofoseifheoiefhoig\n";
mat.Print();
mat = {"matrice5x5.mat"};
mat.GaussJordan(false);
std::cout << "\nResultat :\n";
mat.Print();
mat.Save("matrice3x3echelonne.mat");
mat.Transpose();
mat.Print();
// mat.Save("matrice4x4echelonne.mat");
}
void prompt() {
@@ -24,7 +30,7 @@ void prompt() {
mat.Insert();
mat.Print();
mat.GaussJordan();
mat.GaussJordan(true);
std::cout << std::endl;
mat.Print();
}