// GEM //#include "stdafx.h" #include #include #include #include using namespace std; float GEM(float *a[],float *b[], int N, int M) { for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { b[i][j] = a[i][j]; } } int max = 0; float pom; for (int i = 0; ifabs(b[i][i])) max = j; } for (int k = i; k= i; k--) { b[j][k] = b[j][k] - b[i][k] * b[j][i] / b[i][i]; } } } float r[N]; int res = M-1; for(int i=0; i=0; j--) { pom=0; for(int k=j+1; k<=N; k++) pom=pom+b[j][k]*r[k]; r[j]=(b[j][N]-pom)/b[j][j]; } } cout<<"------------------------------------------------------------------"<>N; //scanf("%d", &N); cout<<" Zadejte pocet sloupcu matice: "; cin>>M; //scanf("%d", &M); cout<