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

Definition at line 38 of file c_sblas2.c.

39  {
40 
41  float *A;
42  int i,j,LDA;
43 
44  if (*layout == TEST_ROW_MJR) {
45  LDA = *n+1;
46  A = ( float* )malloc( (*m)*LDA*sizeof( float ) );
47 
48  for( i=0; i<*m; i++ ) {
49  for( j=0; j<*n; j++ )
50  A[ LDA*i+j ]=a[ (*lda)*j+i ];
51  }
52 
53  cblas_sger(CblasRowMajor, *m, *n, *alpha, x, *incx, y, *incy, A, LDA );
54  for( i=0; i<*m; i++ )
55  for( j=0; j<*n; j++ )
56  a[ (*lda)*j+i ]=A[ LDA*i+j ];
57  free(A);
58  }
59  else
60  cblas_sger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda );
61 }
#define LDA
Definition: example_user.c:12
void cblas_sger(CBLAS_LAYOUT layout, const int M, 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_sger.c:12
#define TEST_ROW_MJR
Definition: cblas_test.h:12

Here is the call graph for this function: