#include #include #include "matrice.h" int main(void) { double vm1[2][3] = {{1., 2., 3.}, {4., 5., 6.}}; double vm4[3][2] = {{1., 2.}, {3., 4.}, {5., 6.}}; matrice m1 = matrice_creer(2, 3, (double *)vm1); matrice m2 = matrice_somme(m1, m1); matrice m3 = matrice_identite(2); matrice m4 = matrice_creer(3, 2, (double *)vm4); matrice m5 = matrice_produit(m1, m4); matrice m6 = matrice_nulle(3, 1); printf("Matrice M1\n"); matrice_afficher(m1); printf("Matrice M2 = somme(M1, M1)\n"); matrice_afficher(m2); printf("Matrice M3 = I (dim = 2)\n"); matrice_afficher(m3); printf("Matrice M4\n"); matrice_afficher(m4); printf("Matrice M5 = produit(M1, M4)\n"); matrice_afficher(m5); printf("Matrice M6 = 0 (dim = 3,1)\n"); matrice_afficher(m6); return EXIT_SUCCESS; }