This commit is contained in:
26
src/main.cpp
26
src/main.cpp
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user