From a016163b86960df1611c8273bd95692fe8e71258 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 14 Feb 2024 20:30:16 +0100 Subject: [PATCH] more example --- src/main.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1e71236..8d66b28 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,4 @@ -#include "Matrix.h" +#include "Vect.h" #include void test() { @@ -15,6 +15,22 @@ void test() { std::cout << "<<\nTransposée:\n"; mat.Print(); // 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"; + mat2.Print(); + + Vect sol {mat2}; + sol.Print(); } void prompt() {