if (((SimpleTensor) t1).getName() != ((SimpleTensor) t2).getName())
return false;
if (!compareIndices(t1.getIndices(), t2.getIndices()))
return false;
}
TensorContent c1 = t1.getContent();
TensorContent c2 = t2.getContent();
if (c1.size() == 0)
return true;
if (c1 instanceof TensorSortedContent)
return compareSortedArrays((TensorSortedContent) c1, (TensorSortedContent) c2);
else