if there exists

𝐵=𝑃1𝐴𝑃

where 𝐴, 𝐵 and 𝑃 are 𝑛 by 𝑛 matrices