LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

◆ F77_zher()

void F77_zher ( CBLAS_INT * layout,
char * uplow,
CBLAS_INT * n,
double * alpha,
CBLAS_TEST_ZOMPLEX * x,
CBLAS_INT * incx,
CBLAS_TEST_ZOMPLEX * a,
CBLAS_INT * lda )

Definition at line 795 of file c_zblas2.c.

800 {
802 CBLAS_INT i,j,LDA;
803 CBLAS_UPLO uplo;
804
805 get_uplo_type(uplow,&uplo);
806
807 if (*layout == TEST_ROW_MJR) {
808 LDA = *n+1;
809 A=(CBLAS_TEST_ZOMPLEX*)malloc((*n)*LDA*sizeof( CBLAS_TEST_ZOMPLEX ));
810
811 for( i=0; i<*n; i++ )
812 for( j=0; j<*n; j++ ) {
813 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real;
814 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag;
815 }
816
817 cblas_zher(CblasRowMajor, uplo, *n, *alpha, x, *incx, A, LDA );
818 for( i=0; i<*n; i++ )
819 for( j=0; j<*n; j++ ) {
820 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real;
821 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag;
822 }
823 free(A);
824 }
825 else if (*layout == TEST_COL_MJR)
826 cblas_zher( CblasColMajor, uplo, *n, *alpha, x, *incx, a, *lda );
827 else
828 cblas_zher( UNDEFINED, uplo, *n, *alpha, x, *incx, a, *lda );
829}
CBLAS_UPLO
Definition cblas.h:41
void cblas_zher(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const double alpha, const void *X, const CBLAS_INT incX, void *A, const CBLAS_INT lda)
Definition cblas_zher.c:12
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:28
#define TEST_ROW_MJR
Definition cblas_test.h:21
#define TEST_COL_MJR
Definition cblas_test.h:25
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: