DFT-EFE
 
Loading...
Searching...
No Matches
LapackAPIWrapper.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Avirup Sircar
24 */
25
26#ifndef LAPACKWrapper_h
27#define LAPACKWrapper_h
28
29#include <cmath>
31#include <utils/TypeConfig.h>
33namespace dftefe
34{
35 namespace linearAlgebra
36 {
37 namespace blasLapack
38 {
39 namespace lapackWrapper
40 {
41 template <typename ValueType>
42 int
43 getrf(const int m,
44 const int n,
45 ValueType * A,
46 const unsigned int lda,
47 int * ipiv);
48
49 template <typename ValueType>
50 int
51 getri(const int N, ValueType *A, const unsigned int lda, int *ipiv);
52
53 template <typename ValueType>
54 int
55 trtri(const char uplo,
56 const char diag,
57 const unsigned int n,
58 ValueType * a,
59 const unsigned int lda);
60
61 template <typename ValueType>
62 int
63 potrf(const char uplo,
64 const unsigned int n,
65 ValueType * a,
66 const unsigned int lda);
67
68 template <typename ValueType>
69 int
70 steqr(const char jobz,
71 const unsigned int n,
74 ValueType * Z,
75 const unsigned int lda);
76
77
78 template <typename ValueType>
79 int
80 heevd(const char jobz,
81 const char uplo,
82 const unsigned int n,
83 ValueType * A,
84 const unsigned int lda,
85 double * w);
86
87 template <typename ValueType>
88 int
89 hegv(const int itype,
90 const char jobz,
91 const char uplo,
92 const unsigned int n,
93 ValueType * A,
94 const unsigned int lda,
95 ValueType * B,
96 const unsigned int ldb,
97 double * w);
98
99 template <typename ValueType>
100 int
101 gesv(const unsigned int n,
102 const unsigned int nrhs,
103 ValueType * A,
104 const unsigned int lda,
105 int * ipiv,
106 ValueType * B,
107 const unsigned int ldb);
108 } // namespace lapackWrapper
109
110 } // namespace blasLapack
111 } // end of namespace linearAlgebra
112
113} // end of namespace dftefe
114
115
116#endif // LAPACKWrapper_h
int trtri(const char uplo, const char diag, const unsigned int n, ValueType *a, const unsigned int lda)
int heevd(const char jobz, const char uplo, const unsigned int n, ValueType *A, const unsigned int lda, double *w)
int gesv(const unsigned int n, const unsigned int nrhs, ValueType *A, const unsigned int lda, int *ipiv, ValueType *B, const unsigned int ldb)
int steqr(const char jobz, const unsigned int n, real_type< ValueType > *D, real_type< ValueType > *E, ValueType *Z, const unsigned int lda)
int hegv(const int itype, const char jobz, const char uplo, const unsigned int n, ValueType *A, const unsigned int lda, ValueType *B, const unsigned int ldb, double *w)
int potrf(const char uplo, const unsigned int n, ValueType *a, const unsigned int lda)
int getri(const int N, ValueType *A, const unsigned int lda, int *ipiv)
int getrf(const int m, const int n, ValueType *A, const unsigned int lda, int *ipiv)
typeInternal::real_type< ValueType > real_type
Definition: BlasLapackTypedef.h:177
dealii includes
Definition: AtomFieldDataSpherical.cpp:31