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

◆ F77_dsyr2()

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

Definition at line 163 of file c_dblas2.c.

164 {
165 double *A;
166 CBLAS_INT i,j,LDA;
167 CBLAS_UPLO uplo;
168
169 get_uplo_type(uplow,&uplo);
170
171 if (*layout == TEST_ROW_MJR) {
172 LDA = *n+1;
173 A = ( double* )malloc( (*n)*LDA*sizeof( double ) );
174 for( i=0; i<*n; i++ )
175 for( j=0; j<*n; j++ )
176 A[ LDA*i+j ]=a[ (*lda)*j+i ];
177 cblas_dsyr2(CblasRowMajor, uplo, *n, *alpha, x, *incx, y, *incy, A, LDA);
178 for( i=0; i<*n; i++ )
179 for( j=0; j<*n; j++ )
180 a[ (*lda)*j+i ]=A[ LDA*i+j ];
181 free(A);
182 }
183 else
184 cblas_dsyr2(CblasColMajor, uplo, *n, *alpha, x, *incx, y, *incy, a, *lda);
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_dsyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT incX, const double *Y, const CBLAS_INT incY, double *A, const CBLAS_INT lda)
Definition cblas_dsyr2.c:12
#define TEST_ROW_MJR
Definition cblas_test.h:12
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: