LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ F77_dger()

void F77_dger ( int *  layout,
int *  m,
int *  n,
double *  alpha,
double *  x,
int *  incx,
double *  y,
int *  incy,
double *  a,
int *  lda 
)

Definition at line 38 of file c_dblas2.c.

39  {
40 
41  double *A;
42  int i,j,LDA;
43 
44  if (*layout == TEST_ROW_MJR) {
45  LDA = *n+1;
46  A = ( double* )malloc( (*m)*LDA*sizeof( double ) );
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_dger(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_dger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda );
61 }
void cblas_dger(CBLAS_LAYOUT layout, const CBLAS_INDEX M, const CBLAS_INDEX N, const double alpha, const double *X, const CBLAS_INDEX incX, const double *Y, const CBLAS_INDEX incY, double *A, const CBLAS_INDEX lda)
Definition: cblas_dger.c:12
@ CblasColMajor
Definition: cblas.h:19
@ CblasRowMajor
Definition: cblas.h:19
#define TEST_ROW_MJR
Definition: cblas_test.h:12
#define LDA
Definition: example_user.c:12
Here is the call graph for this function:
Here is the caller graph for this function: