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

◆ F77_chemv()

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

Definition at line 153 of file c_cblas2.c.

159 {
160
162 CBLAS_INT i,j,LDA;
163 CBLAS_UPLO uplo;
164
165 get_uplo_type(uplow,&uplo);
166
167 if (*layout == TEST_ROW_MJR) {
168 LDA = *n+1;
169 A = (CBLAS_TEST_COMPLEX *)malloc((*n)*LDA*sizeof(CBLAS_TEST_COMPLEX));
170 for( i=0; i<*n; i++ )
171 for( j=0; j<*n; j++ ){
172 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real;
173 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag;
174 }
175 cblas_chemv( CblasRowMajor, uplo, *n, alpha, A, LDA, x, *incx,
176 beta, y, *incy );
177 free(A);
178 }
179 else if (*layout == TEST_COL_MJR)
180 cblas_chemv( CblasColMajor, uplo, *n, alpha, a, *lda, x, *incx,
181 beta, y, *incy );
182 else
183 cblas_chemv( UNDEFINED, uplo, *n, alpha, a, *lda, x, *incx,
184 beta, y, *incy );
185}
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_chemv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const void *alpha, const void *A, const CBLAS_INT lda, const void *X, const CBLAS_INT incX, const void *beta, void *Y, const CBLAS_INT incY)
Definition cblas_chemv.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: