Skip to content

Commit

Permalink
Merge pull request #78 from SpM-lab/terasaki/augmented-bosonic-basis
Browse files Browse the repository at this point in the history
Augmented bosonic basis
  • Loading branch information
terasakisatoshi authored Dec 26, 2024
2 parents 43ea478 + a006d20 commit 8462ff6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/sparseir/sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class TauSampling : public AbstractSampling<S> {
return sampling_points_;
}

const Eigen::VectorXd& tau() const {
return sampling_points_;
}

const Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>& matrix() const override {
return matrix_;
}
Expand Down
3 changes: 1 addition & 2 deletions test/augment.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ TEST_CASE("Augmented bosonic basis") {

// Create tau sampling points
auto tau_sampling = TauSampling(basis_aug);
/*
auto tau = tau_sampling.tau;
REQUIRE().size() == basis_aug.size());
Eigen::VectorX<T> gtau(tau.size());
for (size_t i = 0; i < tau.size(); ++i) {
gtau(i) = c - exp(-tau(i) * pole) / (1 - exp(-beta * pole));
Expand All @@ -165,7 +165,6 @@ TEST_CASE("Augmented bosonic basis") {
Eigen::VectorX<T> gtau_reconst = tau_matrix * gl_fit;

REQUIRE(gtau_reconst.isApprox(gtau, 1e-14 * magn));
*/
}


Expand Down

0 comments on commit 8462ff6

Please sign in to comment.