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

◆ F77_sgemv()

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

Definition at line 11 of file c_sblas2.c.

17 {
18
19 float *A;
20 CBLAS_INT i,j,LDA;
21 CBLAS_TRANSPOSE trans;
22
23 get_transpose_type(transp, &trans);
24 if (*layout == TEST_ROW_MJR) {
25 LDA = *n+1;
26 A = ( float* )malloc( (*m)*LDA*sizeof( float ) );
27 for( i=0; i<*m; i++ )
28 for( j=0; j<*n; j++ )
29 A[ LDA*i+j ]=a[ (*lda)*j+i ];
31 *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy );
32 free(A);
33 }
34 else if (*layout == TEST_COL_MJR)
36 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
37 else
38 cblas_sgemv( UNDEFINED, trans,
39 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
40}
void cblas_sgemv(const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE TransA, const CBLAS_INT M, const CBLAS_INT N, const float alpha, const float *A, const CBLAS_INT lda, const float *X, const CBLAS_INT incX, const float beta, float *Y, const CBLAS_INT incY)
Definition cblas_sgemv.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:28
#define TEST_ROW_MJR
Definition cblas_test.h:21
#define TEST_COL_MJR
Definition cblas_test.h:25
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition auxiliary.c:8
Here is the call graph for this function: