assert t instanceof Product; if (t instanceof Product) { Tensor[] sc = ((Product) t).getAllScalarsWithoutFactor(); if (sc.length == 0) continue;
if (!fromContent.getStructureOfContractionsHashed().equals(toContent.getStructureOfContractionsHashed())) return IndexMappingProvider.Util.EMPTY_PROVIDER; Tensor[] fromScalars = pfrom.getAllScalarsWithoutFactor(), toScalars = pto.getAllScalarsWithoutFactor(); if (fromScalars.length != toScalars.length) return IndexMappingProvider.Util.EMPTY_PROVIDER;
for (Tensor t : p.getAllScalarsWithoutFactor()) powers.put(t); Tensor nonScalar = pc.getNonScalar();