LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ F77_cher2()

void F77_cher2 ( CBLAS_INT * layout,
char * uplow,
CBLAS_INT * n,
CBLAS_TEST_COMPLEX * alpha,
CBLAS_TEST_COMPLEX * x,
CBLAS_INT * incx,
CBLAS_TEST_COMPLEX * y,
CBLAS_INT * incy,
CBLAS_TEST_COMPLEX * a,
CBLAS_INT * lda )

Definition at line 831 of file c_cblas2.c.

837 {
838
840 CBLAS_INT i,j,LDA;
841 CBLAS_UPLO uplo;
842
843 get_uplo_type(uplow,&uplo);
844
845 if (*layout == TEST_ROW_MJR) {
846 LDA = *n+1;
847 A= ( CBLAS_TEST_COMPLEX* )malloc((*n)*LDA*sizeof(CBLAS_TEST_COMPLEX ) );
848
849 for( i=0; i<*n; i++ )
850 for( j=0; j<*n; j++ ) {
851 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real;
852 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag;
853 }
854
855 cblas_cher2(CblasRowMajor, uplo, *n, alpha, x, *incx, y, *incy, A, LDA );
856 for( i=0; i<*n; i++ )
857 for( j=0; j<*n; j++ ) {
858 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real;
859 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag;
860 }
861 free(A);
862 }
863 else if (*layout == TEST_COL_MJR)
864 cblas_cher2( CblasColMajor, uplo, *n, alpha, x, *incx, y, *incy, a, *lda);
865 else
866 cblas_cher2( UNDEFINED, uplo, *n, alpha, x, *incx, y, *incy, a, *lda);
867}
CBLAS_UPLO
Definition cblas.h:41
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
void cblas_cher2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const void *alpha, const void *X, const CBLAS_INT incX, const void *Y, const CBLAS_INT incY, void *A, const CBLAS_INT lda)
Definition cblas_cher2.c:12
#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: