LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ F77_stbmv()

void F77_stbmv ( CBLAS_INT * layout,
char * uplow,
char * transp,
char * diagn,
CBLAS_INT * n,
CBLAS_INT * k,
float * a,
CBLAS_INT * lda,
float * x,
CBLAS_INT * incx )

Definition at line 253 of file c_sblas2.c.

258 {
259 float *A;
260 CBLAS_INT irow, jcol, i, j, LDA;
261 CBLAS_TRANSPOSE trans;
262 CBLAS_UPLO uplo;
263 CBLAS_DIAG diag;
264
265 get_transpose_type(transp,&trans);
266 get_uplo_type(uplow,&uplo);
267 get_diag_type(diagn,&diag);
268
269 if (*layout == TEST_ROW_MJR) {
270 LDA = *k+1;
271 A = ( float* )malloc( (*n+*k)*LDA*sizeof( float ) );
272 if (uplo == CblasUpper) {
273 for( i=0; i<*k; i++ ){
274 irow=*k-i;
275 jcol=(*k)-i;
276 for( j=jcol; j<*n; j++ )
277 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
278 }
279 i=*k;
280 irow=*k-i;
281 for( j=0; j<*n; j++ )
282 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
283 }
284 else {
285 i=0;
286 irow=*k-i;
287 for( j=0; j<*n; j++ )
288 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
289 for( i=1; i<*k+1; i++ ){
290 irow=*k-i;
291 jcol=i;
292 for( j=jcol; j<(*n+*k); j++ )
293 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
294 }
295 }
296 cblas_stbmv(CblasRowMajor, uplo, trans, diag, *n, *k, A, LDA, x, *incx);
297 free(A);
298 }
299 else
300 cblas_stbmv(CblasColMajor, uplo, trans, diag, *n, *k, a, *lda, x, *incx);
301}
CBLAS_UPLO
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
CBLAS_TRANSPOSE
Definition cblas.h:40
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
void cblas_stbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const CBLAS_INT K, const float *A, const CBLAS_INT lda, float *X, const CBLAS_INT incX)
Definition cblas_stbmv.c:10
CBLAS_DIAG
Definition cblas.h:42
#define CBLAS_INT
Definition cblas.h:24
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition auxiliary.c:25
#define TEST_ROW_MJR
Definition cblas_test.h:21
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition auxiliary.c:8
Here is the call graph for this function: