22 return 0.5 * std::erfc(x);
27 return -0.5 * sqrtpi_inv * std::exp(-x * x);
30 [[nodiscard]] std::string
name()
const override {
Real occupation(Real x) const override
Compute the occupation f(x) where x = (E - E_F) / σ.
Real entropy_weight(Real x) const override
Compute the entropy contribution δ(x) weight.
std::string name() const override
GaussianSmearing(Real smearing_width=0.0)
Abstract interface for electronic smearing schemes.
Real smearing_width() const
Smearing width σ (degauss) in Ry.