Calculating Compressed Modes For Topological Crystalline Insulators