448 {
449 float *A, *AP;
454
458
460 LDA = *n;
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 ];
470 }
471 else {
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 ];
478 }
480 free(A); free(AP);
481 }
482 else
484}
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 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)