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

Definition at line 139 of file c_sblas2.c.

140  {
141  float *A;
142  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 = ( float* )malloc( (*n)*LDA*sizeof( float ) );
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_ssyr(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_ssyr(CblasColMajor, uplo, *n, *alpha, x, *incx, a, *lda);
161 }
#define LDA
Definition: example_user.c:12
void cblas_ssyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N, const float alpha, const float *X, const int incX, float *A, const int lda)
Definition: cblas_ssyr.c:11
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: