Matrix formulation of electromagnetic scattering | Synapse