2
#include "matrixdefs.h"
3
#include "local_proto.h"
6
* transpose: returns arg2 as the transpose of arg1
9
int transpose(MATRIX * a, MATRIX * b)
11
register int i, j, nr, nc;
15
return error("\': arg1 not defined\n");
20
for (i = 0; i < nr; i++)
21
for (j = 0; j < nc; j++)
22
m.x[j][i] = a->x[i][j];