The Static and Dynamic Block Decoupling Problem for Systems Over a Ring