272 {
273 float *A;
278
282
284 LDA = *k+1;
285 A = ( float* )malloc( (*n+*k)*LDA*sizeof( float ) );
287 for( i=0; i<*k; i++ ){
288 irow=*k-i;
289 jcol=(*k)-i;
290 for( j=jcol; j<*n; j++ )
291 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
292 }
293 i=*k;
294 irow=*k-i;
295 for( j=0; j<*n; j++ )
296 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
297 }
298 else {
299 i=0;
300 irow=*k-i;
301 for( j=0; j<*n; j++ )
302 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
303 for( i=1; i<*k+1; i++ ){
304 irow=*k-i;
305 jcol=i;
306 for( j=jcol; j<(*n+*k); j++ )
307 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
308 }
309 }
311 free(A);
312 }
313 else
315}
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)