Structure-Preserving Transformers for Sequences of SPD Matrices