From aa366eb5b388ccca96c4d3b0a2e473459af1b47d Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Thu, 12 Dec 2024 21:34:16 +0900 Subject: [PATCH] Fix sve --- include/sparseir/sve.hpp | 2 +- test/sve.cxx | 26 ++++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/include/sparseir/sve.hpp b/include/sparseir/sve.hpp index b60c312..5727af8 100644 --- a/include/sparseir/sve.hpp +++ b/include/sparseir/sve.hpp @@ -532,7 +532,7 @@ template auto compute_sve(K kernel, double epsilon = std::numeric_limits::quiet_NaN(), double cutoff = std::numeric_limits::quiet_NaN(), - std::string Twork = "Floatt64", + std::string Twork = "Float64", int lmax = std::numeric_limits::max(), int n_gauss = -1, const std::string &svd_strat = "auto") { diff --git a/test/sve.cxx b/test/sve.cxx index 2c4976e..a2f5691 100644 --- a/test/sve.cxx +++ b/test/sve.cxx @@ -114,22 +114,20 @@ TEST_CASE("CentrosymmSVE", "[CentrosymmSVE]") TEST_CASE("sve.cpp", "[compute_sve]") { - // auto sve = - // sparseir::compute_sve(sparseir::LogisticKernel(10.0)); // Define a map to store SVEResult objects - // auto sve_logistic = std::map < int, - // sparseir::SVEResult>{ - // {10, - // sparseir::compute_sve(sparseir::LogisticKernel(10.0))}, - // {42, - // sparseir::compute_sve(sparseir::LogisticKernel(42.0))}, - // {10000, - // sparseir::compute_sve(sparseir::LogisticKernel(10000.0))}, - // //{100000000, - // sparseir::compute_sve(sparseir::LogisticKernel(10000.0), - // 1e-12)}, - // }; + auto sve_logistic = std::map < int, + sparseir::SVEResult>{ + {10, + sparseir::compute_sve(sparseir::LogisticKernel(10.0))}, + {42, + sparseir::compute_sve(sparseir::LogisticKernel(42.0))}, + {10000, + sparseir::compute_sve(sparseir::LogisticKernel(10000.0))}, + //{100000000, + // sparseir::compute_sve(sparseir::LogisticKernel(10000.0), + // 1e-12)}, + }; SECTION("smooth with Λ =") {