numericalEFT / Lehmann.jl

Compact Spectral Representation for Imaginary-time/Matsubara-frequency Green's Functions
https://numericalEFT.github.io/Lehmann.jl/dev
MIT License
18 stars 1 forks source link

Use Val{}() to improve the type stability #15

Closed kunyuan closed 2 years ago

kunyuan commented 2 years ago

kernel\Omage could return complex or float depending on isFermi and symmetry arguments. Replace the argument with ::Val{isFermi} and ::Val{symmetry} to allow multiple dispatch to improve the type stability