fix gauss
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -2,16 +2,17 @@
|
||||
#include <iostream>
|
||||
|
||||
void test() {
|
||||
Matrix mat{"matrice5x5.mat"};
|
||||
Matrix mat{"matrice4x4.mat"};
|
||||
mat.Print();
|
||||
// mat.Save("matrice3x3.mat");
|
||||
std::cout << "sdfdjiofoseifheoiefhoig\n";
|
||||
mat.Print();
|
||||
mat = {"matrice5x5.mat"};
|
||||
//mat = {"matrice4x4.mat"};
|
||||
mat.GaussJordan(false);
|
||||
std::cout << "\nResultat :\n";
|
||||
mat.Print();
|
||||
mat.Transpose();
|
||||
std::cout << "<<\nTransposée:\n";
|
||||
mat.Print();
|
||||
// mat.Save("matrice4x4echelonne.mat");
|
||||
}
|
||||
@@ -30,10 +31,14 @@ void prompt() {
|
||||
mat.Insert();
|
||||
|
||||
mat.Print();
|
||||
|
||||
mat.GaussJordan(true);
|
||||
|
||||
mat.Print();
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
// test();
|
||||
test();
|
||||
prompt();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user