}
@Override
public IndexMappingProvider create(IndexMappingProvider opu, Tensor from, Tensor to, boolean allowDiffStates) {
final Integral intFrom = (Integral) from, intTo = (Integral) to;
final SimpleTensor[] varsFrom = intFrom.vars(), varsTo = intTo.vars();
if (varsFrom.length != varsTo.length)
return IndexMappingProvider.Util.EMPTY_PROVIDER;
Arrays.sort(varsFrom); //TODO change to quick Sort
Arrays.sort(varsTo); //TODO change to quick Sort
int i;