complex residual difference test
separated transitive matrix