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

◆ F77_dsyr()

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

Definition at line 139 of file c_dblas2.c.

140 {
141 double *A;
142 CBLAS_INT i,j,LDA;
143 CBLAS_UPLO uplo;
144
145 get_uplo_type(uplow,&uplo);
146
147 if (*layout == TEST_ROW_MJR) {
148 LDA = *n+1;
149 A = ( double* )malloc( (*n)*LDA*sizeof( double ) );
150 for( i=0; i<*n; i++ )
151 for( j=0; j<*n; j++ )
152 A[ LDA*i+j ]=a[ (*lda)*j+i ];
153 cblas_dsyr(CblasRowMajor, uplo, *n, *alpha, x, *incx, A, LDA);
154 for( i=0; i<*n; i++ )
155 for( j=0; j<*n; j++ )
156 a[ (*lda)*j+i ]=A[ LDA*i+j ];
157 free(A);
158 }
159 else
160 cblas_dsyr(CblasColMajor, uplo, *n, *alpha, x, *incx, a, *lda);
161}
CBLAS_UPLO
Definition cblas.h:41
void cblas_dsyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT incX, double *A, const CBLAS_INT lda)
Definition cblas_dsyr.c:12
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#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: