From bc6af93249f544d8a8d60603e7fbe7f2691e4378 Mon Sep 17 00:00:00 2001 From: SatoshiTerasaki Date: Sat, 21 Dec 2024 17:48:24 +0900 Subject: [PATCH] T -> S --- include/sparseir/augment.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/sparseir/augment.hpp b/include/sparseir/augment.hpp index b0a0b2f..21c2799 100644 --- a/include/sparseir/augment.hpp +++ b/include/sparseir/augment.hpp @@ -20,11 +20,11 @@ class AbstractAugmentation { virtual std::unique_ptr> clone() const = 0; }; -template -class AugmentedBasis : public AbstractBasis { +template +class AugmentedBasis : public AbstractBasis { public: - AugmentedBasis(std::shared_ptr> basis, - const std::vector>>& augmentations) + AugmentedBasis(std::shared_ptr> basis, + const std::vector>>& augmentations) : _basis(basis), _augmentations(augmentations), _naug(augmentations.size()) { //Error Handling: Check for null basis pointer if (!_basis) { @@ -38,7 +38,7 @@ class AugmentedBasis : public AbstractBasis { } } - size_t size() const override { return _basis->size() + _naug; } + size_t size() const { return _basis->size() + _naug; } Eigen::VectorXd u(const Eigen::VectorXd& tau) const { Eigen::VectorXd result(size()); @@ -62,23 +62,23 @@ class AugmentedBasis : public AbstractBasis { return result; } - Eigen::VectorXd v(const Eigen::VectorXd& w) const override { + Eigen::VectorXd v(const Eigen::VectorXd& w) const { return _basis->v(w); } - Eigen::VectorXd s() const override { return _basis->s(); } + Eigen::VectorXd s() const { return _basis->s(); } - double beta() const override { return _basis->beta(); } + double beta() const { return _basis->beta(); } - double wmax() const override { return _basis->wmax(); } + double wmax() const { return _basis->wmax(); } - std::shared_ptr statistics() const override { + std::shared_ptr statistics() const { return _basis->statistics(); // Assuming _basis also returns a shared_ptr } private: - std::shared_ptr> _basis; - std::vector>> _augmentations; + std::shared_ptr> _basis; + std::vector>> _augmentations; size_t _naug; }; @@ -131,7 +131,7 @@ class TauLinear : public AbstractAugmentation { } std::complex hat(int n) const override { if (n == 0) return 0.0; - return norm_ * 2.0 * beta_ / (n * M_PI * 1i); + return norm_ * 2.0 * beta_ / (n * M_PI * std::complex(0, 1)); } std::unique_ptr> clone() const override { return std::make_unique>(*this);