#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_N
◆ F77_UL
◆ cblas_zhpr2()
Definition at line 12 of file cblas_zhpr2.c.
16{
17 char UL;
18#ifdef F77_CHAR
20#else
21 #define F77_UL &UL
22#endif
23
24#ifdef F77_INT
26#else
27 #define F77_N N
28 #define F77_incX incx
29 #define F77_incY incy
30#endif
32 double *
x=(
double *)X, *xx=(
double *)X, *
y=(
double *)Y,
33 *yy=(double *)Y, *stx, *sty;
34
38
41 {
44 else
45 {
46 cblas_xerbla(2,
"cblas_zhpr2",
"Illegal Uplo setting, %d\n",Uplo );
49 return;
50 }
51 #ifdef F77_CHAR
53 #endif
54
56
58 {
62 else
63 {
64 cblas_xerbla(2,
"cblas_zhpr2",
"Illegal Uplo setting, %d\n", Uplo);
67 return;
68 }
69 #ifdef F77_CHAR
71 #endif
73 {
75 x = malloc(
n*
sizeof(
double));
76 y = malloc(
n*
sizeof(
double));
79 if( incX > 0 )
80 i = incX << 1;
81 else
82 i = incX *(-2);
83
84 if( incY > 0 )
85 j = incY << 1;
86 else
87 j = incY *(-2);
88 do
89 {
93 xx += i;
95 do
96 {
100 yy += j;
101 }
105
106 #ifdef F77_INT
107 if(incX > 0 )
109 else
111
112 if(incY > 0 )
114 else
116
117 #else
118 if(incX > 0 )
119 incx = 1;
120 else
121 incx = -1;
122
123 if(incY > 0 )
124 incy = 1;
125 else
126 incy = -1;
127 #endif
128
129 } else
130 {
133 }
135 }
136 else
137 {
138 cblas_xerbla(1,
"cblas_zhpr2",
"Illegal layout setting, %d\n", layout);
141 return;
142 }
149 return;
150}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)