308 {
309 float *A;
314
318
320 LDA = *k+1;
321 A = ( float* )malloc( (*n+*k)*LDA*sizeof( float ) );
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 }
347 free(A);
348 }
349 else
351}
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)
void get_diag_type(char *type, CBLAS_DIAG *diag)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)