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

◆ F77_stbsv()

void F77_stbsv ( 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 303 of file c_sblas2.c.

308 {
309 float *A;
310 CBLAS_INT irow, jcol, i, j, LDA;
311 CBLAS_TRANSPOSE trans;
312 CBLAS_UPLO uplo;
313 CBLAS_DIAG diag;
314
315 get_transpose_type(transp,&trans);
316 get_uplo_type(uplow,&uplo);
317 get_diag_type(diagn,&diag);
318
319 if (*layout == TEST_ROW_MJR) {
320 LDA = *k+1;
321 A = ( float* )malloc( (*n+*k)*LDA*sizeof( float ) );
322 if (uplo == CblasUpper) {
323 for( i=0; i<*k; i++ ){
324 irow=*k-i;
325 jcol=(*k)-i;
326 for( j=jcol; j<*n; j++ )
327 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
328 }
329 i=*k;
330 irow=*k-i;
331 for( j=0; j<*n; j++ )
332 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
333 }
334 else {
335 i=0;
336 irow=*k-i;
337 for( j=0; j<*n; j++ )
338 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
339 for( i=1; i<*k+1; i++ ){
340 irow=*k-i;
341 jcol=i;
342 for( j=jcol; j<(*n+*k); j++ )
343 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
344 }
345 }
346 cblas_stbsv(CblasRowMajor, uplo, trans, diag, *n, *k, A, LDA, x, *incx);
347 free(A);
348 }
349 else
350 cblas_stbsv(CblasColMajor, uplo, trans, diag, *n, *k, a, *lda, x, *incx);
351}
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
CBLAS_DIAG
Definition cblas.h:42
#define CBLAS_INT
Definition cblas.h:24
void cblas_stbsv(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_stbsv.c:10
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: