#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_chpr2()
Definition at line 12 of file cblas_chpr2.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
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_chpr2",
"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_chpr2",
"Illegal Uplo setting, %d\n", Uplo);
67 return;
68 }
69 #ifdef F77_CHAR
71 #endif
73 {
75 x = malloc(
n*
sizeof(
float));
76 y = malloc(
n*
sizeof(
float));
79 if( incX > 0 ) {
80 i = incX << 1 ;
81 tincx = 2;
83 } else {
84 i = incX *(-2);
85 tincx = -2;
88 }
89
90 if( incY > 0 ) {
91 j = incY << 1;
92 tincy = 2;
94 } else {
95 j = incY *(-2);
96 tincy = -2;
99 }
100
101 do
102 {
106 xx += i;
107 }
109 do
110 {
114 yy += j;
115 }
117
120
121 #ifdef F77_INT
124 #else
125 incx = 1;
126 incy = 1;
127 #endif
128
129 } else
130 {
133 }
135 } else
136 {
137 cblas_xerbla(1,
"cblas_chpr2",
"Illegal layout setting, %d\n", layout);
140 return;
141 }
148 return;
149}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)