LAPACK
3.10.1
LAPACK: Linear Algebra PACKage
◆
F77_zher()
void F77_zher
(
int *
layout
,
char *
uplow
,
int *
n
,
double *
alpha
,
CBLAS_TEST_ZOMPLEX
*
x
,
int *
incx
,
CBLAS_TEST_ZOMPLEX
*
a
,
int *
lda
)
Definition at line
743
of file
c_zblas2.c
.
744
{
745
CBLAS_TEST_ZOMPLEX
*A;
746
int
i,j,
LDA
;
747
CBLAS_UPLO
uplo;
748
749
get_uplo_type
(uplow,&uplo);
750
751
if
(*layout ==
TEST_ROW_MJR
) {
752
LDA
= *n+1;
753
A=(
CBLAS_TEST_ZOMPLEX
*)malloc((*n)*
LDA
*
sizeof
(
CBLAS_TEST_ZOMPLEX
));
754
755
for
( i=0; i<*n; i++ )
756
for
( j=0; j<*n; j++ ) {
757
A[
LDA
*i+j ].
real
=a[ (*lda)*j+i ].
real
;
758
A[
LDA
*i+j ].
imag
=a[ (*lda)*j+i ].
imag
;
759
}
760
761
cblas_zher
(
CblasRowMajor
, uplo, *n, *alpha, x, *incx, A,
LDA
);
762
for
( i=0; i<*n; i++ )
763
for
( j=0; j<*n; j++ ) {
764
a[ (*lda)*j+i ].
real
=A[
LDA
*i+j ].
real
;
765
a[ (*lda)*j+i ].
imag
=A[
LDA
*i+j ].
imag
;
766
}
767
free(A);
768
}
769
else
if
(*layout ==
TEST_COL_MJR
)
770
cblas_zher
(
CblasColMajor
, uplo, *n, *alpha, x, *incx, a, *lda );
771
else
772
cblas_zher
(
UNDEFINED
, uplo, *n, *alpha, x, *incx, a, *lda );
773
}
CBLAS_UPLO
CBLAS_UPLO
Definition:
cblas.h:29
cblas_zher
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
@ CblasColMajor
Definition:
cblas.h:27
CblasRowMajor
@ CblasRowMajor
Definition:
cblas.h:27
UNDEFINED
#define UNDEFINED
Definition:
cblas_test.h:19
TEST_ROW_MJR
#define TEST_ROW_MJR
Definition:
cblas_test.h:12
TEST_COL_MJR
#define TEST_COL_MJR
Definition:
cblas_test.h:16
get_uplo_type
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition:
auxiliary.c:18
LDA
#define LDA
Definition:
example_user.c:12
CBLAS_TEST_ZOMPLEX::real
double real
Definition:
cblas_test.h:22
CBLAS_TEST_ZOMPLEX::imag
double imag
Definition:
cblas_test.h:22
CBLAS_TEST_ZOMPLEX
Definition:
cblas_test.h:22
Here is the call graph for this function:
Here is the caller graph for this function:
CBLAS
testing
c_zblas2.c
Generated on Tue Apr 12 2022 14:49:02 for LAPACK by
1.9.1