C++ (Qt)QVector <QVector <double> > a(10,QVector <double>(10));
C++ (Qt)QVector <QVector <double>> a;
C++ (Qt)matrix3diagonal () { a.resize (M); for (int i = 0; i <M; + + i){ a [i]. resize (M);}
C++ (Qt)class Grid{ private: vector<vector<Token*> > grid; public: Grid() : grid ( 6, vector<Token*>(7) ) {}};
C++ (Qt)class Grid{public: Grid() // default ctor { // set size of grid grid.resize(6); for(int i = 0; i < 6; ++i) grid[i].resize(7); } private: vector< vector<Token*> > grid;};
C++ (Qt)max@T1000:~/Qt-projects/TestMatrix_v2$ ./TesrMatrix
C++ (Qt).........void matrix3diagonal::back(){ j=N-1; x[j]=(b[j]-a[j][j-1]*beta[j])/(a[j][j-1]*alpha[j]+a[j][j]); for(i=N-1;i>-1;i--){x[i-1]=alpha[i]*x[i]+beta[i]; } //xn розвязок }//back...........