Reputation
1,723
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 19
Impact
~19k people reached

May
18
comment How to get Mathematica to abort the current evaluation if an assertion fails?
@halirutan: no prob, I just "unaccepted" it : )
May
18
revised How to print unevaluated arguments in the form they were originally typed in?
added 69 characters in body
May
18
revised How to print unevaluated arguments in the form they were originally typed in?
added 69 characters in body
May
18
comment How to print unevaluated arguments in the form they were originally typed in?
@halirutan: thanks for the tip. It's an improvement, although it does not get rid of the Sequence[ ... ] wrapper. BTW, getting 2^2 instead of 2<sup>2</sup> is acceptable. I'll edit my question to clarify this point.
May
17
asked How to print unevaluated arguments in the form they were originally typed in?
May
17
asked How to get Mathematica to abort the current evaluation if an assertion fails?
May
12
revised NaNs in tabular data and import performance
deleted 3 characters in body
May
12
comment NaNs in tabular data and import performance
Thanks, I found reading your code instructive. I did find a pretty good solution, though. Both fast and simple. I just posted it. I think it's the way to go, at least when running under a "Unixy" OS. (There's got to be an equivalent move for Windows, but I know very little about that OS.)
May
12
answered NaNs in tabular data and import performance
May
12
comment NaNs in tabular data and import performance
@MarcoB: types depends on the file contents; for the sample input file I proposed in the EDIT, types = Table["Real", {400}] should do.
May
12
revised NaNs in tabular data and import performance
added 169 characters in body
May
12
comment NaNs in tabular data and import performance
@MarcoB: I have not tried ReadLine, but I imagine that it would suffer from exactly the same ToExpression bottleneck that I showed in my example.
May
12
comment NaNs in tabular data and import performance
@episanty: yes, the output should be exactly the same that one would get from a call to ReadList on a version of the input file from which all the lines that mentioned nan had been filtered out.
May
12
revised NaNs in tabular data and import performance
added 566 characters in body
May
12
comment NaNs in tabular data and import performance
@episanty: see the new EDIT section in my post.
May
12
revised NaNs in tabular data and import performance
added 566 characters in body
May
12
comment NaNs in tabular data and import performance
@episanty: as the example I posted shows, I am discarding all the lines that contain NaNs.
May
12
revised NaNs in tabular data and import performance
added 977 characters in body
May
12
asked NaNs in tabular data and import performance
May
8
asked What makes items with head `Function` different?