Skip to content

Commit a548e7b

Browse files
committed
Restore the mistakenly removed const
1 parent 1b1050f commit a548e7b

File tree

1 file changed

+8
-8
lines changed
  • source/source_base/module_container/base/third_party

1 file changed

+8
-8
lines changed

source/source_base/module_container/base/third_party/lapack.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void hegvx(const int itype, const char jobz, const char range, const char uplo,
275275
float* a, const int lda, float* b, const int ldb,
276276
const float vl, const float vu, const int il, const int iu, const float abstol,
277277
int m, float* w, float* z, const int ldz,
278-
float* work, int lwork, float* rwork, int* iwork, int* ifail, int& info)
278+
float* work, const int lwork, float* rwork, int* iwork, int* ifail, int& info)
279279
{
280280
ssygvx_(&itype, &jobz, &range, &uplo, &n,
281281
a, &lda, b, &ldb,
@@ -289,7 +289,7 @@ void hegvx(const int itype, const char jobz, const char range, const char uplo,
289289
double* a, const int lda, double* b, const int ldb,
290290
const double vl, const double vu, const int il, const int iu, const double abstol,
291291
int m, double* w, double* z, const int ldz,
292-
double* work, int lwork, double* rwork, int* iwork, int* ifail, int& info)
292+
double* work, const int lwork, double* rwork, int* iwork, int* ifail, int& info)
293293
{
294294
dsygvx_(&itype, &jobz, &range, &uplo, &n,
295295
a, &lda, b, &ldb,
@@ -303,7 +303,7 @@ void hegvx(const int itype, const char jobz, const char range, const char uplo,
303303
std::complex<float>* a, const int lda, std::complex<float>* b, const int ldb,
304304
const float vl, const float vu, const int il, const int iu, const float abstol,
305305
int m, float* w, std::complex<float>* z, const int ldz,
306-
std::complex<float>* work, int lwork, float* rwork, int* iwork, int* ifail, int& info)
306+
std::complex<float>* work, const int lwork, float* rwork, int* iwork, int* ifail, int& info)
307307
{
308308
chegvx_(&itype, &jobz, &range, &uplo, &n,
309309
a, &lda, b, &ldb,
@@ -317,7 +317,7 @@ void hegvx(const int itype, const char jobz, const char range, const char uplo,
317317
std::complex<double>* a, const int lda, std::complex<double>* b, const int ldb,
318318
const double vl, const double vu, const int il, const int iu, const double abstol,
319319
int m, double* w, std::complex<double>* z, const int ldz,
320-
std::complex<double>* work, int lwork, double* rwork, int* iwork, int* ifail, int& info)
320+
std::complex<double>* work, const int lwork, double* rwork, int* iwork, int* ifail, int& info)
321321
{
322322
zhegvx_(&itype, &jobz, &range, &uplo, &n,
323323
a, &lda, b, &ldb,
@@ -333,7 +333,7 @@ void heevx(const char jobz, const char range, const char uplo, const int n,
333333
float* a, const int lda,
334334
const float vl, const float vu, const int il, const int iu, const float abstol,
335335
int m, float* w, float* z, const int ldz,
336-
float* work, int lwork, float* rwork, int* iwork, int* ifail, int info)
336+
float* work, const int lwork, float* rwork, int* iwork, int* ifail, int info)
337337
{
338338
ssyevx_(&jobz, &range, &uplo, &n,
339339
a, &lda, &vl, &vu, &il, &iu,
@@ -346,7 +346,7 @@ void heevx(const char jobz, const char range, const char uplo, const int n,
346346
double* a, const int lda,
347347
const double vl, const double vu, const int il, const int iu, const double abstol,
348348
int m, double* w, double* z, const int ldz,
349-
double* work, int lwork, double* rwork, int* iwork, int* ifail, int info)
349+
double* work, const int lwork, double* rwork, int* iwork, int* ifail, int info)
350350
{
351351
dsyevx_(&jobz, &range, &uplo, &n,
352352
a, &lda, &vl, &vu, &il, &iu,
@@ -358,7 +358,7 @@ void heevx(const char jobz, const char range, const char uplo, const int n,
358358
std::complex<float>* a, const int lda,
359359
const float vl, const float vu, const int il, const int iu, const float abstol,
360360
int m, float* w, std::complex<float>* z, const int ldz,
361-
std::complex<float>* work, int lwork, float* rwork, int* iwork, int* ifail, int info)
361+
std::complex<float>* work, const int lwork, float* rwork, int* iwork, int* ifail, int info)
362362
{
363363
cheevx_(&jobz, &range, &uplo, &n,
364364
a, &lda, &vl, &vu, &il, &iu,
@@ -371,7 +371,7 @@ void heevx(const char jobz, const char range, const char uplo, const int n,
371371
std::complex<double>* a, const int lda,
372372
const double vl, const double vu, const int il, const int iu, const double abstol,
373373
int m, double* w, std::complex<double>* z, const int ldz,
374-
std::complex<double>* work, int lwork, double* rwork, int* iwork, int* ifail, int info)
374+
std::complex<double>* work, const int lwork, double* rwork, int* iwork, int* ifail, int info)
375375
{
376376
zheevx_(&jobz, &range, &uplo, &n,
377377
a, &lda, &vl, &vu, &il, &iu,

0 commit comments

Comments
 (0)