11 #include "cblas_f77.h" 12 void cblas_cgerc(
const CBLAS_LAYOUT layout,
const CBLAS_INT M,
const CBLAS_INT N,
13 const void *alpha,
const void *X,
const CBLAS_INT incX,
14 const void *Y,
const CBLAS_INT incY,
void *A,
const CBLAS_INT lda)
17 F77_INT F77_M=M, F77_N=N, F77_lda=lda, F77_incX=incX, F77_incY=incY;
26 CBLAS_INT n, i, tincy, incy=incY;
27 float *y=(
float *)Y, *yy=(
float *)Y, *ty, *st;
29 extern int CBLAS_CallFromC;
30 extern int RowMajorStrg;
34 if (layout == CblasColMajor)
36 F77_cgerc( &F77_M, &F77_N, alpha, X, &F77_incX, Y, &F77_incY, A,
38 }
else if (layout == CblasRowMajor)
44 y = malloc(n*
sizeof(
float));
75 F77_cgeru( &F77_N, &F77_M, alpha, y, &F77_incY, X, &F77_incX, A,
80 }
else cblas_xerbla(1,
"cblas_cgerc",
"Illegal layout setting, %d\n", layout);