reformat
This commit is contained in:
13
src/main.cpp
13
src/main.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user