# include # include # include # include #ifdef ESSL #include "/usr/include/essl.h" #endif #include "GULIPS.h" #include "guisdap.h" void mymul(char transa,double *mat1,long mat1m,long mat1n,char transb,double *mat2,long mat2m,long mat2n, double *res) { register long resM,resN,i,j,k; register double sum; double *ptr1,*ptr2; if((transa=='N') && (transb=='N')) { if(mat1n != mat2m) { fprintf(stderr,"field: matrix sizes incompatible in matrix product!"); exit(-1); } resM=mat1m;resN=mat2n; for(i=0;i