cblas_zgeru.c
Go to the documentation of this file.
00001 /*
00002  * cblas_zgeru.c
00003  * The program is a C interface to zgeru.
00004  * 
00005  * Keita Teranishi  5/20/98
00006  *
00007  */
00008 #include "cblas.h"
00009 #include "cblas_f77.h"
00010 void cblas_zgeru(const enum CBLAS_ORDER order, const int M, const int N,
00011                  const void *alpha, const void *X, const int incX,
00012                  const void *Y, const int incY, void *A, const int lda)
00013 {
00014 #ifdef F77_INT
00015    F77_INT F77_M=M, F77_N=N, F77_lda=lda, F77_incX=incX, F77_incY=incY;
00016 #else
00017    #define F77_M M
00018    #define F77_N N
00019    #define F77_incX incX
00020    #define F77_incY incY
00021    #define F77_lda lda
00022 #endif
00023 
00024    extern int CBLAS_CallFromC;
00025    extern int RowMajorStrg;
00026    RowMajorStrg = 0;
00027    CBLAS_CallFromC = 1;
00028 
00029    if (order == CblasColMajor)
00030    {
00031       F77_zgeru( &F77_M, &F77_N, alpha, X, &F77_incX, Y, &F77_incY, A,
00032                       &F77_lda);
00033    }
00034    else if (order == CblasRowMajor)
00035    {
00036       RowMajorStrg = 1;
00037       F77_zgeru( &F77_N, &F77_M, alpha, Y, &F77_incY, X, &F77_incX, A, 
00038                       &F77_lda);
00039    }
00040    else cblas_xerbla(1, "cblas_zgeru", "Illegal Order setting, %d\n", order);
00041    CBLAS_CallFromC = 0;
00042    RowMajorStrg = 0;
00043    return;
00044 }


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:16