I'm having a problem multiplicating 3 matrices in index notation. I know this should be trivial but I just can't figure it out. Is there any formula like $$\ A'_{\mu\nu} = M_{\mu}^{\ \rho}(M^{-1})_{\nu}^{\ \theta}A_{\rho\theta }$$ $\rightarrow$ $A'=MAM $ (M is diagonal if this changes anything and summation over identical indices is assumed (Einstein summation convention).)
For converting between matrix and index notation?, As far as i know the following relation holds $\ A'_{\mu \nu} = M_{\mu}^{\ \rho}M_{\nu}^{\ \theta}A_{\rho\theta }$ $\rightarrow$ $A'=MAM^{-1} $ as physicists use it in special relativity, but I can't derive this formula either because I just can't figure out where the inverse matrix comes into play. I of course already wrote down specific examples of the sum on the left hand side and the matrix multiplication on the right hand side, but it always seems to work without the inverse.
Any help, tip or link where the equivalence is shown explicitly will be much much appreciated because I'm stuck with this problem for quite a while.