//////////////////////////////////////////////////////////////////////
// $Id: matmul.c,v 1.1 1998/01/19 00:49:45 dmartin Exp $
//////////////////////////////////////////////////////////////////////
//
// Example Matrix Multipy Contest Entry
// U.C. Berkeley, Department of EECS, Computer Science Division
// CS 267, Applications of Parallel Processing
// Spring 1998
//
//////////////////////////////////////////////////////////////////////

void
matmul (int i_matdim,
	const double* pd_A,
	const double* pd_B,
	double* pd_C)
{
   int i, j, k;

   for (i = 0; i < i_matdim; i++)
     for (j = 0; j < i_matdim; j++) 
       for (k = 0; k < i_matdim; k++)
	 {
	   pd_C [i*i_matdim + j] += pd_A [i*i_matdim + k] * pd_B [k*i_matdim + j];
	 }
}

//////////////////////////////////////////////////////////////////////
// $Log: matmul.c,v $
// Revision 1.1  1998/01/19 00:49:45  dmartin
// Initial revision
//
//////////////////////////////////////////////////////////////////////