Skip to content

Commit 32ba8d4

Browse files
authored
fix dsygvx (#5443)
1 parent cead7ce commit 32ba8d4

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

source/module_base/lapack_connector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ extern "C"
6161

6262

6363
void dsygvx_(const int* itype, const char* jobz, const char* range, const char* uplo,
64-
const int* n, double* A, const int* lda, double* B, const int* ldb,
65-
const double* vl, const double* vu, const int* il, const int* iu,
66-
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
67-
double* work, int* lwork, int*iwork, int* ifail, int* info);
64+
const int* n, double* A, const int* lda, double* B, const int* ldb,
65+
const double* vl, const double* vu, const int* il, const int* iu,
66+
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
67+
double* work, const int* lwork, int* iwork, int* ifail, int* info);
6868

6969
void chegvx_(const int* itype,const char* jobz,const char* range,const char* uplo,
7070
const int* n,std::complex<float> *a,const int* lda,std::complex<float> *b,

source/module_base/lapack_wrapper.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef LAPACK_HPP
22
#define LAPACK_HPP
3-
3+
#include <iostream>
44
extern "C"
55
{
66
// =================================================================================
@@ -49,10 +49,10 @@ extern "C"
4949
// =================================================================================
5050
// gvx
5151
void dsygvx_(const int* itype, const char* jobz, const char* range, const char* uplo,
52-
const int* n, double* A, const int* lda, double* B, const int* ldb,
53-
const double* vl, const double* vu, const int* il, const int* iu,
54-
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
55-
double* work, int* lwork, int*iwork, int* ifail, int* info);
52+
const int* n, double* A, const int* lda, double* B, const int* ldb,
53+
const double* vl, const double* vu, const int* il, const int* iu,
54+
const double* abstol, const int* m, double* w, double* Z, const int* ldz,
55+
double* work, const int* lwork, int* iwork, int* ifail, int* info);
5656

5757
void chegvx_(const int* itype,const char* jobz,const char* range,const char* uplo,
5858
const int* n,std::complex<float> *a,const int* lda,std::complex<float> *b,
@@ -424,8 +424,8 @@ class LapackWrapper
424424
int* ifail,
425425
int& info)
426426
{
427-
// dsygvx_(&itype, &jobz, &range, &uplo, &n, a, &lda, b, &ldb, &vl,
428-
// &vu, &il,&iu, &abstol, &m, w, z, &ldz, work, &lwork, rwork, iwork, ifail, &info);
427+
dsygvx_(&itype, &jobz, &range, &uplo, &n, a, &lda, b, &ldb, &vl,
428+
&vu, &il, &iu, &abstol, &m, w, z, &ldz, work, &lwork, iwork, ifail, &info);
429429
}
430430

431431
// wrap function of fortran lapack routine xhegvx ( pointer version ).

0 commit comments

Comments
 (0)