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


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