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

◆ F77_dger()

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

Definition at line 42 of file c_dblas2.c.

43 {
44
45 double *A;
46 CBLAS_INT i,j,LDA;
47
48 if (*layout == TEST_ROW_MJR) {
49 LDA = *n+1;
50 A = ( double* )malloc( (*m)*LDA*sizeof( double ) );
51
52 for( i=0; i<*m; i++ ) {
53 for( j=0; j<*n; j++ )
54 A[ LDA*i+j ]=a[ (*lda)*j+i ];
55 }
56
57 cblas_dger(CblasRowMajor, *m, *n, *alpha, x, *incx, y, *incy, A, LDA );
58 for( i=0; i<*m; i++ )
59 for( j=0; j<*n; j++ )
60 a[ (*lda)*j+i ]=A[ LDA*i+j ];
61 free(A);
62 }
63 else
64 cblas_dger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda );
65}
void cblas_dger(CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT incX, const double *Y, const CBLAS_INT incY, double *A, const CBLAS_INT lda)
Definition cblas_dger.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
Here is the call graph for this function: