LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
void F77_ssyr2 ( int *  layout,
char *  uplow,
int *  n,
float *  alpha,
float *  x,
int *  incx,
float *  y,
int *  incy,
float *  a,
int *  lda 
)

Definition at line 163 of file c_sblas2.c.

164  {
165  float *A;
166  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 = ( float* )malloc( (*n)*LDA*sizeof( float ) );
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_ssyr2(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_ssyr2(CblasColMajor, uplo, *n, *alpha, x, *incx, y, *incy, a, *lda);
185 }
#define LDA
Definition: example_user.c:12
void cblas_ssyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const float alpha, const float *X, const int incX, const float *Y, const int incY, float *A, const int lda)
Definition: cblas_ssyr2.c:12
CBLAS_UPLO
Definition: cblas.h:21
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition: auxiliary.c:18
#define TEST_ROW_MJR
Definition: cblas_test.h:12

Here is the call graph for this function: