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

◆ F77_ssyr()

void F77_ssyr ( CBLAS_INT * layout,
char * uplow,
CBLAS_INT * n,
float * alpha,
float * x,
CBLAS_INT * incx,
float * a,
CBLAS_INT * lda )

Definition at line 155 of file c_sblas2.c.

160 {
161 float *A;
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 = ( float* )malloc( (*n)*LDA*sizeof( float ) );
170 for( i=0; i<*n; i++ )
171 for( j=0; j<*n; j++ )
172 A[ LDA*i+j ]=a[ (*lda)*j+i ];
173 cblas_ssyr(CblasRowMajor, uplo, *n, *alpha, x, *incx, A, LDA);
174 for( i=0; i<*n; i++ )
175 for( j=0; j<*n; j++ )
176 a[ (*lda)*j+i ]=A[ LDA*i+j ];
177 free(A);
178 }
179 else
180 cblas_ssyr(CblasColMajor, uplo, *n, *alpha, x, *incx, a, *lda);
181}
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_ssyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, float *A, const CBLAS_INT lda)
Definition cblas_ssyr.c:11
#define TEST_ROW_MJR
Definition cblas_test.h:21
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: