26 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
29 A[ LDA*i+j ]=a[ (*lda)*j+i ];
31 *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy );
36 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
39 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
50 A = (
float* )malloc( (*m)*LDA*
sizeof( float ) );
52 for( i=0; i<*m; i++ ) {
54 A[ LDA*i+j ]=a[ (*lda)*j+i ];
60 a[ (*lda)*j+i ]=A[ LDA*i+j ];
85 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
88 A[ LDA*i+j ]=a[ (*lda)*j+i ];
117 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
118 for( i=0; i<*n; i++ )
119 for( j=0; j<*n; j++ )
120 A[ LDA*i+j ]=a[ (*lda)*j+i ];
142 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
143 for( i=0; i<*n; i++ )
144 for( j=0; j<*n; j++ )
145 A[ LDA*i+j ]=a[ (*lda)*j+i ];
169 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
170 for( i=0; i<*n; i++ )
171 for( j=0; j<*n; j++ )
172 A[ LDA*i+j ]=a[ (*lda)*j+i ];
174 for( i=0; i<*n; i++ )
175 for( j=0; j<*n; j++ )
176 a[ (*lda)*j+i ]=A[ LDA*i+j ];
197 A = (
float* )malloc( (*n)*LDA*
sizeof( float ) );
198 for( i=0; i<*n; i++ )
199 for( j=0; j<*n; j++ )
200 A[ LDA*i+j ]=a[ (*lda)*j+i ];
202 for( i=0; i<*n; i++ )
203 for( j=0; j<*n; j++ )
204 a[ (*lda)*j+i ]=A[ LDA*i+j ];
227 A = (
float* )malloc( (*n+*kl)*LDA*
sizeof( float ) );
228 for( i=0; i<*ku; i++ ){
231 for( j=jcol; j<*n; j++ )
232 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
236 for( j=0; j<*n; j++ )
237 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
238 for( i=*ku+1; i<*ku+*kl+1; i++ ){
241 for( j=jcol; j<(*n+*kl); j++ )
242 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
245 A, LDA, x, *incx, *beta, y, *incy );
250 a, *lda, x, *incx, *beta, y, *incy );
271 A = (
float* )malloc( (*n+*k)*LDA*
sizeof( float ) );
273 for( i=0; i<*k; i++ ){
276 for( j=jcol; j<*n; j++ )
277 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
281 for( j=0; j<*n; j++ )
282 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
287 for( j=0; j<*n; j++ )
288 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
289 for( i=1; i<*k+1; i++ ){
292 for( j=jcol; j<(*n+*k); j++ )
293 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
321 A = (
float* )malloc( (*n+*k)*LDA*
sizeof( float ) );
323 for( i=0; i<*k; i++ ){
326 for( j=jcol; j<*n; j++ )
327 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
331 for( j=0; j<*n; j++ )
332 A[ LDA*j+irow ]=a[ (*lda)*j+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++ ){
342 for( j=jcol; j<(*n+*k); j++ )
343 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
368 A = (
float* )malloc( (*n+*k)*LDA*
sizeof( float ) );
370 for( i=0; i<*k; i++ ){
373 for( j=jcol; j<*n; j++ )
374 A[ LDA*(j-jcol)+irow ]=a[ (*lda)*j+i ];
378 for( j=0; j<*n; j++ )
379 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
384 for( j=0; j<*n; j++ )
385 A[ LDA*j+irow ]=a[ (*lda)*j+i ];
386 for( i=1; i<*k+1; i++ ){
389 for( j=jcol; j<(*n+*k); j++ )
390 A[ LDA*j+irow ]=a[ (*lda)*(j-jcol)+i ];
416 A = (
float* )malloc( LDA*LDA*
sizeof(
float ) );
417 AP = (
float* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
float ) );
419 for( j=0, k=0; j<*n; j++ )
420 for( i=0; i<j+1; i++, k++ )
421 A[ LDA*i+j ]=ap[ k ];
422 for( i=0, k=0; i<*n; i++ )
423 for( j=i; j<*n; j++, k++ )
424 AP[ k ]=A[ LDA*i+j ];
427 for( j=0, k=0; j<*n; j++ )
428 for( i=j; i<*n; i++, k++ )
429 A[ LDA*i+j ]=ap[ k ];
430 for( i=0, k=0; i<*n; i++ )
431 for( j=0; j<i+1; j++, k++ )
432 AP[ k ]=A[ LDA*i+j ];
461 A = (
float* )malloc( LDA*LDA*
sizeof(
float ) );
462 AP = (
float* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
float ) );
464 for( j=0, k=0; j<*n; j++ )
465 for( i=0; i<j+1; i++, k++ )
466 A[ LDA*i+j ]=ap[ k ];
467 for( i=0, k=0; i<*n; i++ )
468 for( j=i; j<*n; j++, k++ )
469 AP[ k ]=A[ LDA*i+j ];
472 for( j=0, k=0; j<*n; j++ )
473 for( i=j; i<*n; i++, k++ )
474 A[ LDA*i+j ]=ap[ k ];
475 for( i=0, k=0; i<*n; i++ )
476 for( j=0; j<i+1; j++, k++ )
477 AP[ k ]=A[ LDA*i+j ];
504 A = (
float* )malloc( LDA*LDA*
sizeof(
float ) );
505 AP = (
float* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
float ) );
507 for( j=0, k=0; j<*n; j++ )
508 for( i=0; i<j+1; i++, k++ )
509 A[ LDA*i+j ]=ap[ k ];
510 for( i=0, k=0; i<*n; i++ )
511 for( j=i; j<*n; j++, k++ )
512 AP[ k ]=A[ LDA*i+j ];
516 for( j=0, k=0; j<*n; j++ )
517 for( i=j; i<*n; i++, k++ )
518 A[ LDA*i+j ]=ap[ k ];
519 for( i=0, k=0; i<*n; i++ )
520 for( j=0; j<i+1; j++, k++ )
521 AP[ k ]=A[ LDA*i+j ];
544 A = (
float* )malloc( LDA*LDA*
sizeof(
float ) );
545 AP = (
float* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
float ) );
547 for( j=0, k=0; j<*n; j++ )
548 for( i=0; i<j+1; i++, k++ )
549 A[ LDA*i+j ]=ap[ k ];
550 for( i=0, k=0; i<*n; i++ )
551 for( j=i; j<*n; j++, k++ )
552 AP[ k ]=A[ LDA*i+j ];
555 for( j=0, k=0; j<*n; j++ )
556 for( i=j; i<*n; i++, k++ )
557 A[ LDA*i+j ]=ap[ k ];
558 for( i=0, k=0; i<*n; i++ )
559 for( j=0; j<i+1; j++, k++ )
560 AP[ k ]=A[ LDA*i+j ];
564 for( i=0, k=0; i<*n; i++ )
565 for( j=i; j<*n; j++, k++ )
566 A[ LDA*i+j ]=AP[ k ];
567 for( j=0, k=0; j<*n; j++ )
568 for( i=0; i<j+1; i++, k++ )
569 ap[ k ]=A[ LDA*i+j ];
572 for( i=0, k=0; i<*n; i++ )
573 for( j=0; j<i+1; j++, k++ )
574 A[ LDA*i+j ]=AP[ k ];
575 for( j=0, k=0; j<*n; j++ )
576 for( i=j; i<*n; i++, k++ )
577 ap[ k ]=A[ LDA*i+j ];
599 A = (
float* )malloc( LDA*LDA*
sizeof(
float ) );
600 AP = (
float* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
float ) );
602 for( j=0, k=0; j<*n; j++ )
603 for( i=0; i<j+1; i++, k++ )
604 A[ LDA*i+j ]=ap[ k ];
605 for( i=0, k=0; i<*n; i++ )
606 for( j=i; j<*n; j++, k++ )
607 AP[ k ]=A[ LDA*i+j ];
610 for( j=0, k=0; j<*n; j++ )
611 for( i=j; i<*n; i++, k++ )
612 A[ LDA*i+j ]=ap[ k ];
613 for( i=0, k=0; i<*n; i++ )
614 for( j=0; j<i+1; j++, k++ )
615 AP[ k ]=A[ LDA*i+j ];
619 for( i=0, k=0; i<*n; i++ )
620 for( j=i; j<*n; j++, k++ )
621 A[ LDA*i+j ]=AP[ k ];
622 for( j=0, k=0; j<*n; j++ )
623 for( i=0; i<j+1; i++, k++ )
624 ap[ k ]=A[ LDA*i+j ];
627 for( i=0, k=0; i<*n; i++ )
628 for( j=0; j<i+1; j++, k++ )
629 A[ LDA*i+j ]=AP[ k ];
630 for( j=0, k=0; j<*n; j++ )
631 for( i=j; i<*n; i++, k++ )
632 ap[ k ]=A[ LDA*i+j ];
void cblas_sspmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *Ap, const float *X, const CBLAS_INT incX, const float beta, float *Y, const CBLAS_INT incY)
void cblas_ssymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, 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 cblas_sgemv(const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE TransA, const CBLAS_INT M, const CBLAS_INT N, 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 cblas_strsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const float *A, const CBLAS_INT lda, float *X, const CBLAS_INT incX)
void cblas_sspr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, float *Ap)
void cblas_sgbmv(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT KL, const CBLAS_INT KU, 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 cblas_strmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const float *A, const CBLAS_INT lda, float *X, const CBLAS_INT incX)
void cblas_ssyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, const float *Y, const CBLAS_INT incY, float *A, const CBLAS_INT lda)
void cblas_stbmv(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 cblas_sger(CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, const float *Y, const CBLAS_INT incY, float *A, const CBLAS_INT lda)
void cblas_stpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const float *Ap, float *X, const CBLAS_INT incX)
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 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 cblas_ssyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, float *A, const CBLAS_INT lda)
void cblas_stpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const float *Ap, float *X, const CBLAS_INT incX)
void cblas_sspr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, const float *Y, const CBLAS_INT incY, float *A)
#define BLAS_FORTRAN_STRLEN_END
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)