LAPACK  3.8.0
LAPACK: Linear Algebra PACKage

◆ F77_sgemv()

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

Definition at line 11 of file c_sblas2.c.

13  {
14 
15  float *A;
16  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 = ( float* )malloc( (*m)*LDA*sizeof( float ) );
23  for( i=0; i<*m; i++ )
24  for( j=0; j<*n; j++ )
25  A[ LDA*i+j ]=a[ (*lda)*j+i ];
26  cblas_sgemv( CblasRowMajor, trans,
27  *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy );
28  free(A);
29  }
30  else if (*layout == TEST_COL_MJR)
31  cblas_sgemv( CblasColMajor, trans,
32  *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
33  else
34  cblas_sgemv( UNDEFINED, trans,
35  *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy );
36 }
#define LDA
Definition: example_user.c:12
#define UNDEFINED
Definition: cblas_test.h:19
void cblas_sgemv(const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE TransA, const int M, const int N, const float alpha, const float *A, const int lda, const float *X, const int incX, const float beta, float *Y, const int incY)
Definition: cblas_sgemv.c:11
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition: auxiliary.c:8
#define TEST_ROW_MJR
Definition: cblas_test.h:12
CBLAS_TRANSPOSE
Definition: cblas.h:20
#define TEST_COL_MJR
Definition: cblas_test.h:16
Here is the call graph for this function: