Skip to content

Commit 0c86fff

Browse files
committed
Use namespace instead of class for LapackConnector, remove lapack_wrapper
1 parent 1f0618f commit 0c86fff

File tree

2 files changed

+2
-498
lines changed

2 files changed

+2
-498
lines changed

source/source_base/module_external/lapack_connector.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,8 @@ void zhegvx_i(const int* itype,
241241
// Class LapackConnector provide the connector to fortran lapack routine.
242242
// The entire function in this class are static and inline function.
243243
// Usage example: LapackConnector::functionname(parameter list).
244-
class LapackConnector
244+
namespace LapackConnector
245245
{
246-
private:
247246
// Transpose the std::complex matrix to the fortran-form real-std::complex array.
248247
static inline
249248
std::complex<double>* transpose(const ModuleBase::ComplexMatrix& a, const int n, const int lda)
@@ -350,7 +349,6 @@ class LapackConnector
350349
}
351350
}
352351

353-
public:
354352
// wrap function of fortran lapack routine zheev.
355353
static inline
356354
void zheev( const char jobz,
@@ -490,5 +488,5 @@ class LapackConnector
490488
const char trans_changed = change_trans_NC(trans);
491489
cherk_(&uplo_changed, &trans_changed, &n, &k, &alpha, A, &lda, &beta, C, &ldc);
492490
}
493-
};
491+
} // namespace LapackConnector
494492
#endif // LAPACK_CONNECTOR_HPP

0 commit comments

Comments
 (0)