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

◆ F77_ssyr2()

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

Definition at line 183 of file c_sblas2.c.

188 {
189 float *A;
190 CBLAS_INT i,j,LDA;
191 CBLAS_UPLO uplo;
192
193 get_uplo_type(uplow,&uplo);
194
195 if (*layout == TEST_ROW_MJR) {
196 LDA = *n+1;
197 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
198 for( i=0; i<*n; i++ )
199 for( j=0; j<*n; j++ )
200 A[ LDA*i+j ]=a[ (*lda)*j+i ];
201 cblas_ssyr2(CblasRowMajor, uplo, *n, *alpha, x, *incx, y, *incy, A, LDA);
202 for( i=0; i<*n; i++ )
203 for( j=0; j<*n; j++ )
204 a[ (*lda)*j+i ]=A[ LDA*i+j ];
205 free(A);
206 }
207 else
208 cblas_ssyr2(CblasColMajor, uplo, *n, *alpha, x, *incx, y, *incy, a, *lda);
209}
CBLAS_UPLO
Definition cblas.h:41
void cblas_ssyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT incX, const float *Y, const CBLAS_INT incY, float *A, const CBLAS_INT lda)
Definition cblas_ssyr2.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:21
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: