image et noyau
All checks were successful
Linux arm64 / Build (push) Successful in 36s

This commit is contained in:
2024-02-14 21:35:26 +01:00
parent e1f501237d
commit 4ffeea8900
3 changed files with 57 additions and 16 deletions

View File

@@ -1,8 +1,8 @@
#include "Vect.h"
#include "Solver.h"
#include <iostream>
void test() {
Matrix mat{"matrice4x4.mat"};
/* Matrix mat{"matrice4x4.mat"};
mat.Print();
// mat.Save("matrice3x3.mat");
std::cout << "sdfdjiofoseifheoiefhoig\n";
@@ -14,23 +14,17 @@ void test() {
mat.Transpose();
std::cout << "<<\nTransposée:\n";
mat.Print();
// mat.Save("matrice4x4echelonne.mat");
// mat.Save("matrice4x4echelonne.mat"); */
Matrix mat2 {"matrice4x4.mat"};
mat2.Print();
mat2.Transpose();
std::cout << "Transposée : \n";
mat2.Print();
mat2.GaussJordan(true);
mat2.Transpose();
std::cout << "Echelonnée en colonne :\n";
Matrix mat2{"matrice4x4.mat"};
mat2.Print();
Vect sol {mat2};
sol.Print();
Solver solver{mat2};
std::cout << "\tImage :\n";
solver.Image().Print();
std::cout << "\tNoyau :\n";
solver.Noyau().Print();
}
void prompt() {