Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. void Complement_2( double** pTabO, double** pTabI, int nRow, int nCol, int nDim ) {
  2.  
  3. //-- wyciecie wiersza nRow i kolumny nCol z macierzy
  4. for( int i = 0; i < nDim; i++, pTabI++) {
  5.  
  6. //-- wyciecie wiersza nRow
  7. if( i == nRow )
  8. continue;
  9.  
  10.  
  11. double* pC_in = *pTabI;
  12. double* pC_out = *(pTabO++);
  13.  
  14. for( int j = 0; j < nDim; j++, pC_in++ ) {
  15. //-- wyciecie kolumny nCol
  16. if( j == nCol )
  17. continue;
  18.  
  19. *(pC_out++) = *pC_in; // kopiowanie do nowej macierzy
  20.  
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement