if (c instanceof Sum)
iterator.set(togetherSum(c, doFactor));
if (c instanceof Product)
iterator.set(collectScalarFactorsInProduct((Product) c));
}
return iterator.result();
}
private static Tensor togetherSum(Tensor t, boolean doFactor) {
boolean performTogether = false;
for (Tensor s : t)