fn evaluate( matrices: [MatRef<'_, Complex>; 2], incident: &DMatrix<Complex>, ports: &TrPorts, ) -> Result<TrForward>
Validate the inputs and compute the transmittance and reflectance.