This is an implementation of the reverse transfer matrix method in Python, which offers a way to find properties (r. index, thickness) of individual layers in multilayer stacks from a single Reflectance and Transmittance measurement at any incidence.
The transfer matrix method assigns one matrix per interface. Each layer has two interfaces.
Interestingly, we don't know what $\widetilde{M}$ is. Instead, we have the element-wise absolute value of $\widetilde{M}$. Thus, I currently only have the absolute value of refractive index.