cblas_ssbmv.c
Go to the documentation of this file.
00001 /*
00002  *
00003  * cblas_ssbmv.c
00004  * This program is a C interface to ssbmv.
00005  * Written by Keita Teranishi
00006  * 4/6/1998
00007  *
00008  */
00009 #include "cblas.h"
00010 #include "cblas_f77.h"
00011 void cblas_ssbmv(const enum CBLAS_ORDER order, const enum CBLAS_UPLO Uplo,
00012            const int N, const int K, const float alpha, const float *A,
00013            const int lda, const float *X, const int incX,
00014            const float beta, float *Y, const int incY)
00015 {
00016    char UL;
00017 #ifdef F77_CHAR
00018    F77_CHAR F77_UL;
00019 #else
00020    #define F77_UL &UL   
00021 #endif
00022 
00023 #ifdef F77_INT
00024    F77_INT F77_N=N, F77_K=K, F77_lda=lda, F77_incX=incX, F77_incY=incY;
00025 #else
00026    #define F77_N N
00027    #define F77_K K
00028    #define F77_lda lda
00029    #define F77_incX incX
00030    #define F77_incY incY
00031 #endif
00032    extern int CBLAS_CallFromC;
00033    extern int RowMajorStrg;
00034    RowMajorStrg = 0;
00035 
00036    CBLAS_CallFromC = 1;
00037    if (order == CblasColMajor)
00038    {
00039    
00040       if (Uplo == CblasUpper) UL = 'U';
00041       else if (Uplo == CblasLower) UL = 'L';
00042       else 
00043       {
00044          cblas_xerbla(2, "cblas_ssbmv","Illegal Uplo setting, %d\n",Uplo );
00045          CBLAS_CallFromC = 0;
00046          RowMajorStrg = 0;
00047          return;
00048       }
00049       #ifdef F77_CHAR
00050          F77_UL = C2F_CHAR(&UL);
00051       #endif
00052       F77_ssbmv(F77_UL, &F77_N, &F77_K, &alpha, A, &F77_lda, X,
00053       &F77_incX, &beta, Y, &F77_incY);
00054    }else if (order == CblasRowMajor)
00055    {
00056       RowMajorStrg = 1;
00057       if (Uplo == CblasUpper) UL = 'L';
00058       else if (Uplo == CblasLower) UL = 'U';
00059       else 
00060       {
00061          cblas_xerbla(2, "cblas_ssbmv","Illegal Uplo setting, %d\n", Uplo);
00062          CBLAS_CallFromC = 0;
00063          RowMajorStrg = 0;
00064          return;
00065       }
00066       #ifdef F77_CHAR
00067          F77_UL = C2F_CHAR(&UL);
00068       #endif
00069       F77_ssbmv(F77_UL, &F77_N, &F77_K, &alpha, A, &F77_lda, X,
00070       &F77_incX, &beta, Y, &F77_incY);
00071    }
00072    else cblas_xerbla(1, "cblas_ssbmv", "Illegal Order setting, %d\n", order);
00073    CBLAS_CallFromC = 0;
00074    RowMajorStrg = 0;
00075    return;
00076 }


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