Skip to content

Commit

Permalink
Fix sve
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Dec 12, 2024
1 parent a44f74f commit aa366eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion include/sparseir/sve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ template <typename K>
auto compute_sve(K kernel,
double epsilon = std::numeric_limits<double>::quiet_NaN(),
double cutoff = std::numeric_limits<double>::quiet_NaN(),
std::string Twork = "Floatt64",
std::string Twork = "Float64",
int lmax = std::numeric_limits<int>::max(), int n_gauss = -1,
const std::string &svd_strat = "auto")
{
Expand Down
26 changes: 12 additions & 14 deletions test/sve.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,20 @@ TEST_CASE("CentrosymmSVE", "[CentrosymmSVE]")

TEST_CASE("sve.cpp", "[compute_sve]")
{
// auto sve =
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10.0));

// Define a map to store SVEResult objects
// auto sve_logistic = std::map < int,
// sparseir::SVEResult<sparseir::LogisticKernel>>{
// {10,
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10.0))},
// {42,
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(42.0))},
// {10000,
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10000.0))},
// //{100000000,
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10000.0),
// 1e-12)},
// };
auto sve_logistic = std::map < int,
sparseir::SVEResult<sparseir::LogisticKernel>>{
{10,
sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10.0))},
{42,
sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(42.0))},
{10000,
sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10000.0))},
//{100000000,
// sparseir::compute_sve<sparseir::LogisticKernel>(sparseir::LogisticKernel(10000.0),
// 1e-12)},
};

SECTION("smooth with Λ =")
{
Expand Down

0 comments on commit aa366eb

Please sign in to comment.