Conditions for the elements of the scattering matrix