#include <stdio.h>
#define MAX_COL 50
void fast_transpose(matrix a[], matrix b[]);
void print_matrix(matrix a[]);
void main(void)
{
matrix a[9] = { { 6, 6, 8 }, { 0, 0, 15 }, { 0, 3, 22 }, { 0, 5, -15 }, { 1, 1, 11 }, { 1, 2, 3 }, { 2, 3, -6 }, { 4, 0, 91 }, { 5, 2, 28 }};
matrix b[9];
fast_transpose(a, b);
print_matrix(b);
return ;
}
void fast_transpose(matrix a[], matrix b[])
{int pos[MAX_COL];
int num_cols = a[0].col;
int num_terms = a[0].value;
int i, j;