for (int index : dataBijection) {
allowed.addAll(TensorUtils.getAllDummyIndicesT(currentData[index]));
ib.append(currentData[index]);
}
allowed.addAll(ib.getIndices().getNamesOfDummies());
allowed.removeAll(IndicesUtils.getIndicesNames(mapping.getToData()));
newTo = applyIndexMappingAndRenameAllDummies(to, mapping, allowed.toArray());
}
}
return new SubsResult(newTo, remainder);
}