Skip to content
Snippets Groups Projects
Commit e5e1a1d2 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler Committed by dune-community-bulldozer[bot]
Browse files

[lapacke] add dsygv for generalized eigenvalue problems

parent 52596e98
No related branches found
No related tags found
No related merge requests found
...@@ -452,6 +452,26 @@ int dpocon(int DXTC_LAPACKE_ONLY(matrix_layout), ...@@ -452,6 +452,26 @@ int dpocon(int DXTC_LAPACKE_ONLY(matrix_layout),
} }
int dsygv(int DXTC_LAPACKE_ONLY(matrix_layout),
int DXTC_LAPACKE_ONLY(itype),
char DXTC_LAPACKE_ONLY(jobz),
char DXTC_LAPACKE_ONLY(uplo),
int DXTC_LAPACKE_ONLY(n),
double* DXTC_LAPACKE_ONLY(a),
int DXTC_LAPACKE_ONLY(lda),
double* DXTC_LAPACKE_ONLY(b),
int DXTC_LAPACKE_ONLY(ldb),
double* DXTC_LAPACKE_ONLY(w))
{
#if HAVE_MKL || HAVE_LAPACKE
return LAPACKE_dsygv(matrix_layout, itype, jobz, uplo, n, a, lda, b, ldb, w);
#else
DUNE_THROW(Exceptions::dependency_missing, "You are missing lapacke or the intel mkl, check available() first!");
return 1;
#endif
}
int dtrcon(int DXTC_LAPACKE_ONLY(matrix_layout), int dtrcon(int DXTC_LAPACKE_ONLY(matrix_layout),
char DXTC_LAPACKE_ONLY(norm), char DXTC_LAPACKE_ONLY(norm),
char DXTC_LAPACKE_ONLY(uplo), char DXTC_LAPACKE_ONLY(uplo),
......
...@@ -254,6 +254,15 @@ int dptcon(int n, const double* d, const double* e, double anorm, double* rcond) ...@@ -254,6 +254,15 @@ int dptcon(int n, const double* d, const double* e, double anorm, double* rcond)
int dpocon(int matrix_layout, char uplo, int n, const double* a, int lda, double anorm, double* rcond); int dpocon(int matrix_layout, char uplo, int n, const double* a, int lda, double anorm, double* rcond);
/**
* \brief Wrapper around LAPACKE_dsygv
*
* \sa LAPACKE_dsygv
* \sa https://software.intel.com/en-us/mkl-developer-reference-c-sygv
*/
int dsygv(int matrix_layout, int itype, char jobz, char uplo, int n, double* a, int lda, double* b, int ldb, double* w);
/** /**
* \brief Wrapper around LAPACKE_dtrcon * \brief Wrapper around LAPACKE_dtrcon
* \sa LAPACKE_dtrcon * \sa LAPACKE_dtrcon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment