Skip to content

Commit

Permalink
change namespace A::B{} to namespace A{namespace B{}} (#3960)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeizeLin committed Apr 12, 2024
1 parent 8ecfd6a commit fd4ee1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion source/module_ri/ABFs_Construct-PCA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#include <cassert>
#include <limits>

namespace ABFs_Construct::PCA
namespace ABFs_Construct
{
namespace PCA
{
void tensor_dsyev(const char jobz, const char uplo, RI::Tensor<double> & a, double*const w, int & info)
{
Expand Down Expand Up @@ -151,3 +153,4 @@ namespace ABFs_Construct::PCA
}

} // namespace ABFs_Construct::PCA
} // namespace ABFs_Construct
5 changes: 4 additions & 1 deletion source/module_ri/ABFs_Construct-PCA.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
// new basis: to be constructed
// ( all lcaos and abfs on same atom )

namespace ABFs_Construct::PCA
namespace ABFs_Construct
{
namespace PCA
{
extern std::vector<std::vector<std::pair<std::vector<double>,RI::Tensor<double>>>> cal_PCA(
const std::vector<std::vector<std::vector<Numerical_Orbital_Lm>>> &lcaos,
const std::vector<std::vector<std::vector<Numerical_Orbital_Lm>>> &abfs, // abfs must be orthonormal
const double kmesh_times );
}
}

#endif // ABFS_CONSTRUCT_PCA_H

0 comments on commit fd4ee1f

Please sign in to comment.