@richard just rot90/180/270. I don’t think arbitrary rotation will make sense for matrices.
EDIT: BTW, what would the derivative of such rotation operation with respect to the matrix it handling on be like? A corresponding rotation operation? It is beyond my understanding now.