return new ExpandAllTransformation(transformations).transform(tensor);
}
@Override
protected Tensor expandProduct(Product product, Transformation[] transformations) {
NumeratorDenominator numDen = NumeratorDenominator.getNumeratorAndDenominator(product, NumeratorDenominator.integerDenominatorIndicator);
Tensor denominator = numDen.denominator;
// assert !isPositiveIntegerPower(denominator);
if (denominator instanceof Product)
denominator = ExpandUtils.expandProductOfSums((Product) numDen.denominator, transformations);