#include "genocop.h" /********************************************************************************/ /* */ /* FUNCTION NAME : mmprod() */ /* */ /* SYNOPSIS : void mmprod(m,nm,n,mul_cm,mul_am,mul_bm) */ /* */ /* DESCRIPTION : This function finds the product of two */ /* float matrices */ /* */ /* FUNCTIONS CALLED : None */ /* */ /* CALLING FUNCITONS : find_org_in_eq(), */ /* main(). */ /* */ /* AUTHOR : Swarnalatha Swaminathan */ /* */ /* DATE : 1/17/92 */ /* */ /* */ /* REV DATE BY DESCRIPTION */ /* --- ---- -- ----------- */ /* */ /* */ /********************************************************************************/ void mmprod(m,nm,n,mul_cm,mul_am,mul_bm) int m, /*row of mul_am matrix*/ nm, /*column of mul_am and row of mul_bm matrices*/ n; /*row of mul_bm matrix*/ MATRIX mul_cm, /*the final matrix*/ mul_am, /*the first matrix to be multiplied*/ mul_bm; /*the second matrix to be multiplied*/ { int i,j,k; /*counter variables, where i=m, j=nm, k=n*/ for(i= 1; i<=m; i++) for(j = 1; j<=n; j++) { mul_cm[i][j] = 0.0; for (k= 1;k