New answers tagged

3

I have found $Epilog utterly unreliable for this. Not all ways of quitting Mathematica evaluates $Epilog. And of course, there is the problem that a different package may (re)set it. I have no idea how Compile implements this, but I have two suggestions: Place all your temporary files in a special folder that you empty on load. Be careful how you handle ...


5

It is because your loop grows the size of your matrix, and therefore Length[mat] increases, and thus the loop never terminates! It appears that the first index of your matrix doesn't change too much (I've not tried to unravel your If), and therefore the loop does terminate before Length[mat[[1]]] increases too much. Here's a MWE that demonstrates that you ...



Top 50 recent answers are included