319 {
320 float *A;
323
325
327 LDA = *k+1;
328 A = ( float* )malloc( (*n+*k)*LDA*sizeof( float ) );
330 for( i=0; i<*k; i++ ){
331 irow=*k-i;
332 jcol=(*k)-i;
333 for( j=jcol; j<*n; j++ )
334 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
335 }
336 i=*k;
337 irow=*k-i;
338 for( j=0; j<*n; j++ )
339 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
340 }
341 else {
342 i=0;
343 irow=*k-i;
344 for( j=0; j<*n; j++ )
345 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
346 for( i=1; i<*k+1; i++ ){
347 irow=*k-i;
348 jcol=i;
349 for( j=jcol; j<(*n+*k); j++ )
350 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
351 }
352 }
354 *beta, y, *incy );
355 free(A);
356 }
357 else
359 *beta, y, *incy );
360}
void cblas_ssbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float *X, const CBLAS_INT incX, const float beta, float *Y, const CBLAS_INT incY)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)