This commit is contained in:
18
src/main.cpp
18
src/main.cpp
@@ -1,4 +1,4 @@
|
|||||||
#include "Matrix.h"
|
#include "Vect.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
void test() {
|
void test() {
|
||||||
@@ -15,6 +15,22 @@ void test() {
|
|||||||
std::cout << "<<\nTransposée:\n";
|
std::cout << "<<\nTransposée:\n";
|
||||||
mat.Print();
|
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";
|
||||||
|
mat2.Print();
|
||||||
|
|
||||||
|
Vect sol {mat2};
|
||||||
|
sol.Print();
|
||||||
}
|
}
|
||||||
|
|
||||||
void prompt() {
|
void prompt() {
|
||||||
|
|||||||
Reference in New Issue
Block a user