Text this: The rational canonical form of a matrix