Changeset 5371 for issm/trunk/src/c/shared/Matrix/MatrixUtils.cpp
- Timestamp:
- 08/18/10 12:03:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/shared/Matrix/MatrixUtils.cpp
r5016 r5371 399 399 400 400 }/*}}}*/ 401 /*FUNCTION MatrixTranspose(double* Adet,double* A) {{{1*/ 402 void MatrixTranspose(double* tA,double* A, int nrows, int ncols){ 403 /*Transpose a n*m matrix*/ 404 405 int i,j; 406 407 /*Check the the matrix has been allocated*/ 408 ISSMASSERT(tA); 409 410 /*Transpose*/ 411 for(i=0;i<ncols;i++){ 412 for(j=0;j<nrows;j++){ 413 tA[i*nrows+j]=A[j*ncols+i]; 414 } 415 } 416 417 } 418 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.