for (ConcurrentGrowingList<FactorNode> list : nodes.values()) {
ConcurrentGrowingList<FactorNode>.GrowingIterator gi = list.iterator();
while ((node = gi.next()) != null)
result.add(new Product(node.cip.result(), node.factor));
}
return result.equivalent();
}
private static Boolean compare(Tensor from, Tensor to) {
int[] fromIndices = from.getIndices().getFreeIndices().getAllIndices().copy();
for (int i = 0; i < fromIndices.length; ++i)