#include #include #include #define N 17 #define M 26 #define K 19 void setElement(float *matrix, int nrows, int row, int col, float value) { matrix[nrows*col+row] = value; } float getElement(float *matrix, int nrows, int row, int col) { return matrix[nrows*col+row]; } void check(float alpha, float beta, float* A, int nrowsA, float* B, int nrowsB, float* C, int nrowsC, float *Cnew) { int i,j,k; float sum; float maxerr = 0.0; float err; for(i=0; i