Vector factory in Kernel Polynomial method
Not sure this is the behaviour you want, but vector_factory
is overwritten when passed through SpectralDensity(), which gave me a
StopIteration: Too many vectors requested from this generator
error when passing recursively and not re-set.