s2fft
s2fft copied to clipboard
Cache quadrature weights
We should cache quadrature weights to avoid recalculating them. While the computation cost of quadrature weights is fairly low we should nevertheless avoid re-calculating. It should be possible to do this simply using the @cache
decorator, of the functools module, as discussed here.