#include "cblas.h"
#include "cblas_f77.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
|
| void | cblas_chbmv (const CBLAS_LAYOUT layout, const CBLAS_UPLO Uplo, const CBLAS_INT N, const CBLAS_INT K, const void *alpha, const void *A, const CBLAS_INT lda, const void *X, const CBLAS_INT incX, const void *beta, void *Y, const CBLAS_INT incY) |
◆ F77_incX
◆ F77_incY
◆ F77_K
◆ F77_lda
◆ F77_N
◆ F77_UL
◆ cblas_chbmv()
| void cblas_chbmv |
( |
const CBLAS_LAYOUT | layout, |
|
|
const CBLAS_UPLO | Uplo, |
|
|
const CBLAS_INT | N, |
|
|
const CBLAS_INT | K, |
|
|
const void * | alpha, |
|
|
const void * | A, |
|
|
const CBLAS_INT | lda, |
|
|
const void * | X, |
|
|
const CBLAS_INT | incX, |
|
|
const void * | beta, |
|
|
void * | Y, |
|
|
const CBLAS_INT | incY ) |
Definition at line 12 of file cblas_chbmv.c.
17{
18 char UL;
19#ifdef F77_CHAR
21#else
22 #define F77_UL &UL
23#endif
24#ifdef F77_INT
26#else
27 #define F77_N N
28 #define F77_K K
29 #define F77_lda lda
30 #define F77_incX incx
31 #define F77_incY incY
32#endif
34 const float *xx= (
float *)X, *alp= (
float *)
alpha, *bet = (
float *)beta;
35 float ALPHA[2],BETA[2];
37 float *
x=(
float *)X, *
y=(
float *)Y, *st=0, *tx;
41
44 {
47 else
48 {
49 cblas_xerbla(2,
"cblas_chbmv",
"Illegal Uplo setting, %d\n",Uplo );
52 return;
53 }
54 #ifdef F77_CHAR
56 #endif
59 }
61 {
63 ALPHA[0]= *alp;
64 ALPHA[1]= -alp[1];
65 BETA[0]= *bet;
66 BETA[1]= -bet[1];
67
69 {
71 x = malloc(
n*
sizeof(
float));
72
74 if( incX > 0 ) {
75 i = incX << 1 ;
76 tincx = 2;
78 } else {
79 i = incX *(-2);
80 tincx = -2;
83 }
84
85 do
86 {
90 xx += i;
91 }
94
95
96 #ifdef F77_INT
98 #else
99 incx = 1;
100 #endif
101
102 if(incY > 0)
103 tincY = incY;
104 else
105 tincY = -incY;
107
108 i = tincY << 1;
111 do {
116 } else
118
121 else
122 {
123 cblas_xerbla(2,
"cblas_chbmv",
"Illegal Uplo setting, %d\n", Uplo);
126 return;
127 }
128 #ifdef F77_CHAR
130 #endif
133 }
134 else
135 {
136 cblas_xerbla(1,
"cblas_chbmv",
"Illegal layout setting, %d\n", layout);
139 return;
140 }
142 {
147 {
148 do
149 {
152 }
154 }
155 }
158 return;
159}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)