Skip to content

Commit 68f47d3

Browse files
committed
Change namespace from dlr2d to cppdlr2d
1 parent 68dcdc6 commit 68f47d3

15 files changed

Lines changed: 24 additions & 30 deletions

c++/cppdlr2d/dlr2d.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <fmt/format.h>
55
#include <numbers>
66

7-
namespace dlr2d {
7+
namespace cppdlr2d {
88

99
using namespace cppdlr;
1010
using std::numbers::pi;
@@ -621,4 +621,4 @@ namespace dlr2d {
621621
return g;
622622
}
623623

624-
} // namespace dlr2d
624+
} // namespace cppdlr2d

c++/cppdlr2d/dlr2d.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "utils.hpp"
44

5-
namespace dlr2d {
5+
namespace cppdlr2d {
66

77
/*!
88
* \brief Obtain 2D DLR "product" Matsubara frequency grid
@@ -299,4 +299,4 @@ namespace dlr2d {
299299
std::complex<double> coefs2eval_if_3term(double beta, nda::vector<double> dlr_rf, nda::array_const_view<dcomplex, 3> gc_reg,
300300
nda::array_const_view<dcomplex, 1> gc_sng, int m, int n, int channel);
301301

302-
} // namespace dlr2d
302+
} // namespace cppdlr2d

c++/cppdlr2d/polarization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "polarization.hpp"
22

3-
namespace dlr2d {
3+
namespace cppdlr2d {
44

55
nda::vector<dcomplex> polarization(double beta, double lambda, double eps, cppdlr::imtime_ops const &itops, cppdlr::imfreq_ops const &ifops_fer,
66
cppdlr::imfreq_ops const &ifops_bos, nda::array_const_view<dcomplex, 1> fc,
@@ -547,4 +547,4 @@ namespace dlr2d {
547547
return beta * ifops_bos.coefs2vals(fgc);
548548
}
549549

550-
} // namespace dlr2d
550+
} // namespace cppdlr2d

c++/cppdlr2d/polarization.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "dlr2d.hpp"
44

5-
namespace dlr2d {
5+
namespace cppdlr2d {
66

77
// Compute polarization by convolution-based algorithm
88
nda::vector<dcomplex> polarization(double beta, double lambda, double eps, cppdlr::imtime_ops const &itops, cppdlr::imfreq_ops const &ifops_fer,
@@ -26,4 +26,4 @@ namespace dlr2d {
2626
nda::vector<dcomplex> polarization_const(double beta, cppdlr::imtime_ops const &itops, cppdlr::imfreq_ops const &ifops_bos,
2727
nda::array_const_view<dcomplex, 1> fc, nda::array_const_view<dcomplex, 1> gc);
2828

29-
} // namespace dlr2d
29+
} // namespace cppdlr2d

c++/cppdlr2d/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <iomanip>
44

5-
namespace dlr2d {
5+
namespace cppdlr2d {
66

77
nda::array<int, 2> get_dlr2d_if_ph(nda::array_const_view<int, 2> dlr2d_if) {
88
auto dlr2d_if_ph = nda::array<int, 2>(dlr2d_if.shape());
@@ -168,4 +168,4 @@ namespace dlr2d {
168168
return {i, j};
169169
}
170170

171-
} // namespace dlr2d
171+
} // namespace cppdlr2d

c++/cppdlr2d/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <numbers>
66
#include <string>
77

8-
namespace dlr2d {
8+
namespace cppdlr2d {
99

1010
using dcomplex = std::complex<double>;
1111

@@ -182,4 +182,4 @@ namespace dlr2d {
182182
*/
183183
std::tuple<int, int> ind2sub_c(int idx, int n);
184184

185-
} // namespace dlr2d
185+
} // namespace cppdlr2d

programs/est_rank_tst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "nda/layout/policies.hpp"
44
#include <cppdlr/cppdlr.hpp>
55

6-
using namespace dlr2d;
6+
using namespace cppdlr2d;
77

88
int main() {
99

programs/generate_dlr2d_if.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <chrono>
33
#include <fmt/format.h>
44

5-
using namespace dlr2d;
5+
using namespace cppdlr2d;
66

77
/*!
88
* \brief Generate 2D Matsubara frequency DLR grids for several choices of DLR

programs/hubatom/hubatom.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <chrono>
33
#include <fmt/format.h>
44

5-
using namespace dlr2d;
5+
using namespace cppdlr2d;
66

77
nda::vector<double> hubatom_allfuncs(double beta, double u, double lambda,
88
double eps, int niomtst, int nbos_tst,
@@ -597,26 +597,20 @@ nda::vector<double> hubatom_allfuncs_3term(double beta, double u, double lambda,
597597
// polarization_res(beta, ifops_fer, ifops_bos, gc, gc, lam_s_c,
598598
// lam_s_csing);
599599
// pol_s += polarization_const(beta, itops, ifops_bos, gc, gc);
600-
auto pol_s =
601-
dlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos,
602-
gc, gc, lam_s_c, lam_s_csing);
600+
auto pol_s = cppdlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos, gc, gc, lam_s_c, lam_s_csing);
603601
pol_s *= -1.0 / 2;
604602

605603
// auto pol_d =
606604
// polarization_res(beta, ifops_fer, ifops_bos, grc, gc, lam_d_c,
607605
// lam_d_csing);
608606
// pol_d += polarization_const(beta, itops, ifops_bos, grc, gc);
609-
auto pol_d =
610-
dlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos,
611-
grc, gc, lam_d_c, lam_d_csing);
607+
auto pol_d = cppdlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos, grc, gc, lam_d_c, lam_d_csing);
612608

613609
// auto pol_m =
614610
// polarization_res(beta, ifops_fer, ifops_bos, grc, gc, lam_m_c,
615611
// lam_m_csing);
616612
// pol_m += polarization_const(beta, itops, ifops_bos, grc, gc);
617-
auto pol_m =
618-
dlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos,
619-
grc, gc, lam_m_c, lam_m_csing);
613+
auto pol_m = cppdlr2d::polarization_3term(beta, lambda, eps, itops, ifops_fer, ifops_bos, grc, gc, lam_m_c, lam_m_csing);
620614

621615
auto pol_s_c = ifops_bos.vals2coefs(beta, pol_s); // DLR expansion
622616
auto pol_d_c = ifops_bos.vals2coefs(beta, pol_d);

programs/hubatom/hubatom.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <cppdlr2d/cppdlr2d.hpp>
77

8-
using namespace dlr2d;
8+
using namespace cppdlr2d;
99

1010
/*!
1111
* \brief Driver function for Hubbard atom example, all functions

0 commit comments

Comments
 (0)