#include "stack-c.h"Include dependency graph for intcdgemm.c:

Go to the source code of this file.
Functions | |
| int | C2F (dgemm) |
| int C2F | ( | dgemm | ) |
Definition at line 3 of file intcdgemm.c.
References C2F, CheckLhs, CheckRhs, dgemm(), Error, GetRhsVar, LhsVar, m, m1, n, n1, Nbvars, sciprint(), and stk.
00009 { 00010 int lalfa,m1,n1,m,n,k; 00011 int mA,nA,lA, mB,nB,lB,m4,n4,lbeta,mC,nC,lC; 00012 00013 static int minlhs=1, minrhs=5, maxlhs=1, maxrhs=5; 00014 Nbvars = 0; 00015 CheckRhs(minrhs,maxrhs) ; 00016 CheckLhs(minlhs,maxlhs) ; 00017 00018 GetRhsVar(1,"d", &m1,&n1,&lalfa); /* alpha */ 00019 GetRhsVar(2,"d", &mA,&nA,&lA); /* A */ 00020 GetRhsVar(3,"d", &mB,&nB,&lB); /* B */ 00021 GetRhsVar(4,"d", &m4,&n4,&lbeta); /* beta */ 00022 GetRhsVar(5,"d", &mC,&nC,&lC); /* C */ 00023 m=mA; 00024 n=nB; 00025 if(nA != mB || m1*n1*m4*n4 != 1 ) 00026 { 00027 sciprint("Bad call to dgemm\r\n"); 00028 Error(9999); return 0; 00029 } 00030 if(mA != mC || nB != nC ) 00031 { 00032 sciprint("%s: invalid matrix dims in ",fname); 00033 Error(9999); return 0; 00034 } 00035 k=nA; 00036 C2F(dgemm)("n","n",&m ,&n ,&k,stk(lalfa), 00037 stk(lA),&mA ,stk(lB),&mB ,stk(lbeta) ,stk(lC),&mC); 00038 /* Return C (#5) */ 00039 LhsVar(1) = 5; 00040 return(0); 00041 }
Here is the call graph for this function:

1.5.1