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

◆ F77_ssymv()

void F77_ssymv ( CBLAS_INT * layout,
char * uplow,
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 127 of file c_sblas2.c.

133 {
134 float *A;
135 CBLAS_INT i,j,LDA;
136 CBLAS_UPLO uplo;
137
138 get_uplo_type(uplow,&uplo);
139
140 if (*layout == TEST_ROW_MJR) {
141 LDA = *n+1;
142 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
143 for( i=0; i<*n; i++ )
144 for( j=0; j<*n; j++ )
145 A[ LDA*i+j ]=a[ (*lda)*j+i ];
146 cblas_ssymv(CblasRowMajor, uplo, *n, *alpha, A, LDA, x, *incx,
147 *beta, y, *incy );
148 free(A);
149 }
150 else
151 cblas_ssymv(CblasColMajor, uplo, *n, *alpha, a, *lda, x, *incx,
152 *beta, y, *incy );
153}
void cblas_ssymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, 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_ssymv.c:12
CBLAS_UPLO
Definition cblas.h:41
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
#define TEST_ROW_MJR
Definition cblas_test.h:21
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: