/* mtransp.c * * Matrix transpose * * * * SYNOPSIS: * * int n; * double A[n*n], T[n*n]; * * mtransp( n, A, T ); * * * * DESCRIPTION: * * * T[r][c] = A[c][r] * * * Transposes the n by n square matrix A and puts the result in T. * The output, T, may occupy the same storage as A. * * * */ mtransp( n, A, T ) int n; double *A, *T; { int i, j, np1; double *pAc, *pAr, *pTc, *pTr, *pA0, *pT0; double x, y; np1 = n+1; pA0 = A; pT0 = T; for( i=0; i