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

◆ F77_zgeru()

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

Definition at line 96 of file c_zblas2.c.

98 {
99
101 CBLAS_INT i,j,LDA;
102
103 if (*layout == TEST_ROW_MJR) {
104 LDA = *n+1;
105 A=(CBLAS_TEST_ZOMPLEX*)malloc((*m)*LDA*sizeof(CBLAS_TEST_ZOMPLEX));
106 for( i=0; i<*m; i++ )
107 for( j=0; j<*n; j++ ){
108 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real;
109 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag;
110 }
111 cblas_zgeru( CblasRowMajor, *m, *n, alpha, x, *incx, y, *incy, A, LDA );
112 for( i=0; i<*m; i++ )
113 for( j=0; j<*n; j++ ){
114 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real;
115 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag;
116 }
117 free(A);
118 }
119 else if (*layout == TEST_COL_MJR)
120 cblas_zgeru( CblasColMajor, *m, *n, alpha, x, *incx, y, *incy, a, *lda );
121 else
122 cblas_zgeru( UNDEFINED, *m, *n, alpha, x, *incx, y, *incy, a, *lda );
123}
void cblas_zgeru(CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, const void *alpha, const void *X, const CBLAS_INT incX, const void *Y, const CBLAS_INT incY, void *A, const CBLAS_INT lda)
Definition cblas_zgeru.c:10
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:28
#define TEST_ROW_MJR
Definition cblas_test.h:21
#define TEST_COL_MJR
Definition cblas_test.h:25
Here is the call graph for this function: