Changeset 5371
- Timestamp:
- 08/18/10 12:03:05 (15 years ago)
- Location:
- issm/trunk/src/c/shared/Matrix
- Files:
-
- 2 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 /*}}}*/ -
issm/trunk/src/c/shared/Matrix/matrix.h
r4898 r5371 13 13 void Matrix3x3Invert(double* Ainv, double* A); 14 14 void Matrix3x3Determinant(double* Adet,double* A); 15 void MatrixTranspose(double* tA,double* A,int nrows, int ncols); 15 16 16 17 #endif //ifndef _MATRIXUTILS_H_
Note:
See TracChangeset
for help on using the changeset viewer.