#include <stdio.h>
#include <stdlib.h>
#include "cblas.h"
#include "cblas_f77.h"
Go to the source code of this file.
|
| void | cblas_cgbmv (const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE TransA, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT KL, const CBLAS_INT KU, 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_KL
◆ F77_KU
◆ F77_lda
◆ F77_M
◆ F77_N
◆ F77_TA
◆ cblas_cgbmv()
| void cblas_cgbmv |
( |
const CBLAS_LAYOUT | layout, |
|
|
const CBLAS_TRANSPOSE | TransA, |
|
|
const CBLAS_INT | M, |
|
|
const CBLAS_INT | N, |
|
|
const CBLAS_INT | KL, |
|
|
const CBLAS_INT | KU, |
|
|
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_cgbmv.c.
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 float *xx= (
float *)X, *alp= (
float *)
alpha, *bet = (
float *)beta;
39 float ALPHA[2],BETA[2];
41 float *
x=(
float *)X, *
y=(
float *)Y, *st=0, *tx=0;
45
48 {
52 else
53 {
54 cblas_xerbla(2,
"cblas_cgbmv",
"Illegal TransA setting, %d\n", TransA);
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 {
80 x = malloc(
n*
sizeof(
float));
82
83 if( incX > 0 ) {
84 i = incX << 1 ;
85 tincx = 2;
87 } else {
88 i = incX *(-2);
89 tincx = -2;
92 }
93 do
94 {
98 xx += i;
99 }
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
115
117 {
118 i = tincY << 1;
121 do {
126 }
127 }
128 else x = (
float *) X;
129
130
131 }
132 else
133 {
134 cblas_xerbla(2,
"cblas_cgbmv",
"Illegal TransA setting, %d\n", TransA);
137 return;
138 }
139 #ifdef F77_CHAR
141 #endif
145 else
149 {
152 {
153 do
154 {
157 }
159 }
160 }
161 }
162 else cblas_xerbla(1,
"cblas_cgbmv",
"Illegal layout setting, %d\n", layout);
165}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)