Refactor spectrally split energy density
This patch does a lot of refactoring which, to my eyes, makes the code easier to understand. Also, it adds documentation for the transformation rules for spectral functions. These rules are nontrivial, and we need to state where they were taken from. This patch adds the references to a paper by Lewis and Sendov, which derives and explains the formulas.
This diff is collapsed.