We show that the scattering matrices of photonic crystal guided resonance systems can exhibit non-trivial topology, which enables robust polarization control that is broadband and immune to loss. We also discuss the application of photonic structures for analog and neuromorphic optical computing.