Changed sum chans to assume complex output data

and potentially complex input data