while (iterator.next() != null)
if (TensorUtils.equalsExactly(iterator.current(), pT))
iterator.set(M);
else if (TensorUtils.equalsExactly(iterator.current(), s))
iterator.set(M2);
allM = iterator.result();
}
status = TensorUtils.equalsExactly(allM, AllToM);
stop = System.currentTimeMillis();
System.out.println("pT-> M and s -> M^2 : " + status + ". Time: " + (stop - start) + " ms");
}