#include <stdio.h>
#include <stdlib.h>
#include "cblas.h"
#include "cblas_f77.h"
Go to the source code of this file.
◆ F77_incX
◆ F77_N
◆ F77_UL
◆ cblas_chpr()
Definition at line 12 of file cblas_chpr.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_incX incx
28#endif
30 float *
x=(
float *)X, *xx=(
float *)X, *tx, *st;
31
35
38 {
41 else
42 {
43 cblas_xerbla(2,
"cblas_chpr",
"Illegal Uplo setting, %d\n",Uplo );
46 return;
47 }
48 #ifdef F77_CHAR
50 #endif
51
53
55 {
59 else
60 {
61 cblas_xerbla(2,
"cblas_chpr",
"Illegal Uplo setting, %d\n", Uplo);
64 return;
65 }
66 #ifdef F77_CHAR
68 #endif
70 {
72 x = malloc(
n*
sizeof(
float));
74 if( incX > 0 ) {
75 i = incX << 1;
76 tincx = 2;
78 } else {
79 i = incX *(-2);
80 tincx = -2;
83 }
84 do
85 {
89 xx += i;
90 }
93 #ifdef F77_INT
95 #else
96 incx = 1;
97 #endif
98 }
100
102
103 } else
104 {
105 cblas_xerbla(1,
"cblas_chpr",
"Illegal layout setting, %d\n", layout);
108 return;
109 }
114 return;
115}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)