Efficient cyclic reduction for Quasi-Birth-Death problems with rank structured blocks