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

◆ F77_dsymv()

void F77_dsymv ( CBLAS_INT layout,
char *  uplow,
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 115 of file c_dblas2.c.

117 {
118 double *A;
119 CBLAS_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 = ( double* )malloc( (*n)*LDA*sizeof( double ) );
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_dsymv(CblasRowMajor, uplo, *n, *alpha, A, LDA, x, *incx,
131 *beta, y, *incy );
132 free(A);
133 }
134 else
135 cblas_dsymv(CblasColMajor, uplo, *n, *alpha, a, *lda, x, *incx,
136 *beta, y, *incy );
137}
CBLAS_UPLO
Definition cblas.h:41
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define CBLAS_INT
Definition cblas.h:24
void cblas_dsymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, 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_dsymv.c:12
#define TEST_ROW_MJR
Definition cblas_test.h:12
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
Here is the call graph for this function: