Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- /*____________________________________*/
- int Inverse_rot(double**, int);
- #define N 4;
- int main()
- {
- int n=N;
- //исходная матрица
- double** a = new double*[n];
- for(int i=0;i<n;i++)
- a[i]=new double[n];
- //Копия исходной матрица
- double** a_copy = new double*[n];
- for(int i=0;i<n;i++)
- a_copy[i]=new double[n];
- //точная обратная матрица
- double** a_inv = new double*[n];
- for(int i=0;i<n;i++)
- a_inv[i]=new double[n];
- //матрица невязок
- double** r = new double*[n];
- for(int i=0;i<n;i++)
- r[i]=new double[n];
- //матрица ошибок
- double** z = new double*[n];
- for(int i=0;i<n;i++)
- z[i]=new double[n];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement