This commit is contained in:
Morph01
2024-02-08 10:36:19 +01:00
parent 3644a0aae2
commit 014b102e4a
3 changed files with 237 additions and 239 deletions

View File

@@ -1,13 +1,14 @@
#include "Matrix.h"
#include <iostream>
void test() {
Matrix<float> mat{"matrice5x5.mat"};
Matrix mat{"matrice5x5.mat"};
mat.Print();
// mat.Save("matrice3x3.mat");
std::cout << "sdfdjiofoseifheoiefhoig\n";
mat.Print();
mat = {"matrice5x5.mat"};
mat.GaussJordan(false, true);
mat.GaussJordan(false);
std::cout << "\nResultat :\n";
mat.Print();
mat.Transpose();
@@ -24,17 +25,11 @@ void prompt() {
std::cin >> colonnes;
std::size_t dimension = lignes * colonnes;
std::cout << "Rentrez les coefficients de la matrice" << std::endl;
Matrix<float> mat(lignes, colonnes);
Matrix mat(lignes, colonnes);
mat.Insert();
mat.Print();
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) {