LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ F77_ssymv()

void F77_ssymv ( int *  layout,
char *  uplow,
int *  n,
float *  alpha,
float *  a,
int *  lda,
float *  x,
int *  incx,
float *  beta,
float *  y,
int *  incy 
)

Definition at line 115 of file c_sblas2.c.

117  {
118  float *A;
119  int i,j,LDA;
120  CBLAS_UPLO uplo;
121 
122  get_uplo_type(uplow,&uplo);
123 
124  if (*layout == TEST_ROW_MJR) {
125  LDA = *n+1;
126  A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
127  for( i=0; i<*n; i++ )
128  for( j=0; j<*n; j++ )
129  A[ LDA*i+j ]=a[ (*lda)*j+i ];
130  cblas_ssymv(CblasRowMajor, uplo, *n, *alpha, A, LDA, x, *incx,
131  *beta, y, *incy );
132  free(A);
133  }
134  else
135  cblas_ssymv(CblasColMajor, uplo, *n, *alpha, a, *lda, x, *incx,
136  *beta, y, *incy );
137 }
CBLAS_UPLO
Definition: cblas.h:21
@ CblasColMajor
Definition: cblas.h:19
@ CblasRowMajor
Definition: cblas.h:19
void cblas_ssymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const CBLAS_INDEX N, const float alpha, const float *A, const CBLAS_INDEX lda, const float *X, const CBLAS_INDEX incX, const float beta, float *Y, const CBLAS_INDEX incY)
Definition: cblas_ssymv.c:12
#define TEST_ROW_MJR
Definition: cblas_test.h:12
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition: auxiliary.c:18
#define LDA
Definition: example_user.c:12
Here is the call graph for this function:
Here is the caller graph for this function: