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

◆ F77_dgemv()

void F77_dgemv ( CBLAS_INT layout,
char *  transp,
CBLAS_INT m,
CBLAS_INT n,
double *  alpha,
double *  a,
CBLAS_INT lda,
double *  x,
CBLAS_INT incx,
double *  beta,
double *  y,
CBLAS_INT incy 
)

Definition at line 11 of file c_dblas2.c.

13 {
14
15 double *A;
16 CBLAS_INT i,j,LDA;
17 CBLAS_TRANSPOSE trans;
18
19 get_transpose_type(transp, &trans);
20 if (*layout == TEST_ROW_MJR) {
21 LDA = *n+1;
22 A = ( double* )malloc( (*m)*LDA*sizeof( double ) );
23 for( i=0; i<*m; i++ )
24 for( j=0; j<*n; j++ )
25 A[ LDA*i+j ]=a[ (*lda)*j+i ];
27 *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy );
28 free(A);
29 }
30 else if (*layout == TEST_COL_MJR)
32 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
33 else
34 cblas_dgemv( UNDEFINED, trans,
35 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
36}
void cblas_dgemv(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT lda, const double *X, const CBLAS_INT incX, const double beta, double *Y, const CBLAS_INT incY)
Definition cblas_dgemv.c:11
CBLAS_TRANSPOSE
Definition cblas.h:40
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:19
#define TEST_ROW_MJR
Definition cblas_test.h:12
#define TEST_COL_MJR
Definition cblas_test.h:16
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition auxiliary.c:8
Here is the call graph for this function: