414 A = (
double* )malloc( LDA*LDA*
sizeof(
double ) );
415 AP = (
double* )malloc( (((LDA+1)*LDA)/2)*
sizeof(
double ) );
417 for( j=0, k=0; j<*n; j++ )
418 for( i=0; i<j+1; i++, k++ )
419 A[ LDA*i+j ]=ap[ k ];
420 for( i=0, k=0; i<*n; i++ )
421 for( j=i; j<*n; j++, k++ )
422 AP[ k ]=A[ LDA*i+j ];
425 for( j=0, k=0; j<*n; j++ )
426 for( i=j; i<*n; i++, k++ )
427 A[ LDA*i+j ]=ap[ k ];
428 for( i=0, k=0; i<*n; i++ )
429 for( j=0; j<i+1; j++, k++ )
430 AP[ k ]=A[ LDA*i+j ];
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
void get_diag_type(char *type, CBLAS_DIAG *diag)
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
void cblas_dtpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const double *Ap, double *X, const int incX)