Matrix multiplication: Difference between revisions

m
Line 1,098:
typedef const double * const MAT_IN_t;
 
static inline void mat_mulmat_mult(
const int m,
const int n,
Line 1,119:
const int m,
const int p,
MAT_IN_t ca)
{
for (int row=0; row<m;row++) {
for (int col=0; col<p;col++) {
printf("\t%7.3f", ca[MAT_ELEM(m,p,row,col)]);
}
putchar('\n');
Line 1,143:
double c[4*3] = {0};
mat_mulmat_mult(4,4,3,a,b,c);
mat_show(4,3,c);
return 0;