Statistics
| Branch: | Revision:

root / synthbench / euroben-ports / base / C-MPI / mod2f / ltrans.c @ 0:839f52ef7657

History | View | Annotate | Download (607 Bytes)

1
void ltrans( int m, int n, double **ar, double **ai,
2
                           double **wr, double **wi )
3
{
4
// ---------------------------------------------------------------------
5
// --- 'ltrans' transposes the arrays 'ar[m][n]' and 'ai[m][n]' and
6
//     leaves them in the arrays 'wr[n][m]' and 'wi[n][m]'.
7
// ---------------------------------------------------------------------
8
   int i, j;
9
// ---------------------------------------------------------------------
10
   for( i = 0; i < m; i++ ) {
11
      for( j = 0; j < n; j++ ) {
12
         wr[j][i] = ar[i][j];
13
         wi[j][i] = ai[i][j];
14
      }
15
   }
16
}