add some stuff

This commit is contained in:
Morph01
2024-02-03 22:03:56 +01:00
parent 5043b67df1
commit e360589bd9
2 changed files with 87 additions and 11 deletions

View File

@@ -4,11 +4,10 @@ void test() {
Matrix<float> mat{"matrice5x5.mat"};
mat.Print();
// mat.Save("matrice3x3.mat");
mat.GaussJordan(true);
std::cout << "sdfdjiofoseifheoiefhoig\n";
mat.Print();
mat = {"matrice5x5.mat"};
mat.GaussJordan(false);
mat.GaussJordan(false, true);
std::cout << "\nResultat :\n";
mat.Print();
mat.Transpose();
@@ -30,13 +29,16 @@ void prompt() {
mat.Insert();
mat.Print();
mat.GaussJordan(true);
Matrix<float> aug = mat.GaussJordan(true, true);
std::cout << std::endl;
std::cout << "Matrice echelonnee reduite" << std::endl;
mat.Print();
std::cout << "Matrice augmentee" << std::endl;
aug.Print();
}
int main(int argc, char** argv) {
test();
// test();
prompt();
return 0;
}