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