Skip to content

Commit

Permalink
Merge pull request #77 from SpM-lab/terasaki/minor-fix
Browse files Browse the repository at this point in the history
Minor fix
  • Loading branch information
terasakisatoshi authored Dec 26, 2024
2 parents 65140bf + 862a126 commit 43ea478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/augment.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ TEST_CASE("Augmented bosonic basis") {
T pole = 1.0;
T c = 1e-2;

/*
// Create tau sampling points
auto tau_sampling = make_tau_sampling(basis_aug);
auto tau_sampling = TauSampling(basis_aug);
/*
auto tau = tau_sampling.tau;
Eigen::VectorX<T> gtau(tau.size());
for (size_t i = 0; i < tau.size(); ++i) {
Expand Down
2 changes: 1 addition & 1 deletion test/sampling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TEST_CASE("sampling", "[Sampling]") {
Eigen::MatrixXd reconstructed_A = svd.matrixU() * svd.singularValues().asDiagonal() * svd.matrixV().transpose();

// Fails
//REQUIRE((A - reconstructed_A).norm() <= 1e-15 * norm_A);
REQUIRE((A - reconstructed_A).norm() <= 1e-15 * norm_A);

// Test multiplication with vector x
Eigen::VectorXd x = Eigen::VectorXd::NullaryExpr(A.cols(), [&](auto) { return dist(rng); });
Expand Down

0 comments on commit 43ea478

Please sign in to comment.