CCL Home Page
Up Directory CCL mat_transpose
#include "utility.h"

void mat_transpose(matrix)
/*============================================================================*/
/* PURPOSE: TRANSPOSE A THREE BY THREE MATRIX.
/* INPUTS:
/*	MATRIX		THREE BY THREE MATRIX.
/* OUTPUTS:
/*	MATRIX		TRANSPOSE OF ORIGINAL MATRIX.
/* WRITTEN: M.V.GRIESHABER
/* LAST MODIFICATION: 11 JUNE 1991 MVG
*/
   double matrix[3][3];
   {
   int i;
   int j;
   double temp;

   for (i=0; i<2; i++)
      {
      for (j=i+1; j<3; j++)
         {
         temp=matrix[i][j];
         matrix[i][j]=matrix[j][i];
         matrix[j][i]=temp;
         }
      }

   return;
   }
Modified: Fri Feb 11 17:00:00 1994 GMT
Page accessed 5203 times since Sat Apr 17 21:58:58 1999 GMT