#include <stdio.h>
#include <stdlib.h>
#include "cblas.h"
#include "cblas_f77.h"
Go to the source code of this file.
◆ F77_incX
◆ F77_incY
◆ F77_lda
◆ F77_N
◆ F77_UL
◆ cblas_cher2()
Definition at line 12 of file cblas_cher2.c.
15{
16 char UL;
17#ifdef F77_CHAR
19#else
20 #define F77_UL &UL
21#endif
22
23#ifdef F77_INT
25#else
26 #define F77_N N
27 #define F77_lda lda
28 #define F77_incX incx
29 #define F77_incY incy
30#endif
31 CBLAS_INT n, i, j, tincx, tincy, incx=incX, incy=incY;
32 float *
x=(
float *)X, *xx=(
float *)X, *
y=(
float *)Y,
33 *yy=(float *)Y, *tx, *ty, *stx, *sty;
34
38
41 {
44 else
45 {
46 cblas_xerbla(2,
"cblas_cher2",
"Illegal Uplo setting, %d\n",Uplo );
49 return;
50 }
51 #ifdef F77_CHAR
53 #endif
54
57
59 {
63 else
64 {
65 cblas_xerbla(2,
"cblas_cher2",
"Illegal Uplo setting, %d\n", Uplo);
68 return;
69 }
70 #ifdef F77_CHAR
72 #endif
74 {
76 x = malloc(
n*
sizeof(
float));
77 y = malloc(
n*
sizeof(
float));
80 if( incX > 0 ) {
81 i = incX << 1 ;
82 tincx = 2;
84 } else {
85 i = incX *(-2);
86 tincx = -2;
89 }
90
91 if( incY > 0 ) {
92 j = incY << 1;
93 tincy = 2;
95 } else {
96 j = incY *(-2);
97 tincy = -2;
100 }
101
102 do
103 {
107 xx += i;
108 }
110
111 do
112 {
116 yy += j;
117 }
119
122
123 #ifdef F77_INT
126 #else
127 incx = 1;
128 incy = 1;
129 #endif
130 } else
131 {
134 }
137 } else
138 {
139 cblas_xerbla(1,
"cblas_cher2",
"Illegal layout setting, %d\n", layout);
142 return;
143 }
148
151 return;
152}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)