Similar matrices (source code)

= Similar matrices
{wiki=Matrix_similarity}

Square matrices $A$ and $B$ are similar when $B=P^{-1}AP$ for some invertible matrix $P$. They represent the same linear operator in different bases and therefore have the same <Jordan normal form>.