18{
19 char TA;
20#ifdef F77_CHAR
22#else
23 #define F77_TA &TA
24#endif
25#ifdef F77_INT
28#else
29 #define F77_M M
30 #define F77_N N
31 #define F77_lda lda
32 #define F77_KL KL
33 #define F77_KU KU
34 #define F77_incX incx
35 #define F77_incY incY
36#endif
38 const double *xx= (double *)X, *alp= (double *)alpha, *bet = (double *)beta;
39 double ALPHA[2],BETA[2];
41 double *x=(double *)X, *y=(double *)Y, *st=0, *tx;
45
48 {
52 else
53 {
57 return;
58 }
59 #ifdef F77_CHAR
61 #endif
64 }
66 {
71 {
72 ALPHA[0]= *alp;
73 ALPHA[1]= -alp[1];
74 BETA[0]= *bet;
75 BETA[1]= -bet[1];
76 TA = 'N';
77 if (M > 0)
78 {
79 n = M << 1;
80 x = malloc(n*sizeof(double));
81 tx = x;
82
83 if( incX > 0 ) {
84 i = incX << 1 ;
85 tincx = 2;
86 st= x+n;
87 } else {
88 i = incX *(-2);
89 tincx = -2;
90 st = x-2;
91 x +=(n-2);
92 }
93 do
94 {
95 *x = *xx;
96 x[1] = -xx[1];
97 x += tincx ;
98 xx += i;
99 }
100 while (x != st);
101 x=tx;
102
103 #ifdef F77_INT
105 #else
106 incx = 1;
107 #endif
108
109 if( incY > 0 )
110 tincY = incY;
111 else
112 tincY = -incY;
113
114 y++;
115
116 if (N > 0)
117 {
118 i = tincY << 1;
119 n = i * N ;
120 st = y + n;
121 do {
122 *y = -(*y);
123 y += i;
124 } while(y != st);
125 y -= n;
126 }
127 }
128 else x = (double *) X;
129
130
131 }
132 else
133 {
137 return;
138 }
139 #ifdef F77_CHAR
141 #endif
145 else
149 {
150 if (x != X) free(x);
151 if (N > 0)
152 {
153 do
154 {
155 *y = -(*y);
156 y += i;
157 }
158 while (y != st);
159 }
160 }
161 }
165 return;
166}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)