226 {
227 double *A;
232
236
238 LDA = *k+1;
239 A = ( double* )malloc( (*n+*k)*LDA*sizeof( double ) );
241 for( i=0; i<*k; i++ ){
242 irow=*k-i;
243 jcol=(*k)-i;
244 for( j=jcol; j<*n; j++ )
245 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
246 }
247 i=*k;
248 irow=*k-i;
249 for( j=0; j<*n; j++ )
250 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
251 }
252 else {
253 i=0;
254 irow=*k-i;
255 for( j=0; j<*n; j++ )
256 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
257 for( i=1; i<*k+1; i++ ){
258 irow=*k-i;
259 jcol=i;
260 for( j=jcol; j<(*n+*k); j++ )
261 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
262 }
263 }
265 free(A);
266 }
267 else
269}
void cblas_dtbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const CBLAS_INT K, const double *A, const CBLAS_INT lda, double *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)