I am computing a long Table[], but the computation of the last few elements is taking too long, and I am afraid I will never converge.
I would like to access the part of the Table which has been already computed and then abort the evaluation.
Is that possible and how?
Thanks.
Asked
Active
Viewed 251 times
0
-
1Apparent duplicate: (7566). Related: (8109), (18519), (35139) – Mr.Wizard Mar 25 '15 at 16:40
1 Answers
2
Perhaps you can adapt something like this
partial = Reap[CheckAbort[full=Table[Sow[expr]; expr, {i,1,1000}], Null]][[2,1]]
Bill
- 12,001
- 12
- 13