assertType(type);
return inverseOrderOfMatrices1(t, type);
}
private static Tensor inverseOrderOfMatrices1(Tensor t, IndexType type) {
FromChildToParentIterator iterator = new FromChildToParentIterator(t);
Tensor c;
while ((c = iterator.next()) != null)
if (c instanceof Product)
iterator.set(inverseOrderInProduct((Product) c, type));
return iterator.result();
}