Reputation
5,398
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 43
Impact
~52k people reached

2d
comment Given a matrix of integer, create a matrix with 1 or 0 according to which numbers are in the first matrix
I'm ashamed. I genuinely hope no one votes mine up. For shame! :) (and my time is 0.56 on my PC vs 5.6 seconds... a loungebook indeed!)
2d
revised Given a matrix of integer, create a matrix with 1 or 0 according to which numbers are in the first matrix
added 196 characters in body
2d
answered Given a matrix of integer, create a matrix with 1 or 0 according to which numbers are in the first matrix
2d
comment How to compare strings insensitive?
StringMatchQ["tHe TeXt to CompARe", "The text to compare", IgnoreCase -> True] == True
2d
revised Write list of numbers to a file
added 496 characters in body
2d
answered Write list of numbers to a file
Jun
27
awarded  list-manipulation
Jun
26
comment Efficient extraction of a subset
You didn't disappoint.
Jun
25
comment Efficient extraction of a subset
@ciao I almost hate to post solutions using Cases since it's usually slow. I'd like to see your solution whip we're waiting on Wolfram to come up with that mythical ParallelCases. :)
Jun
25
comment Efficient extraction of a subset
@ciao Significantly??? :)
Jun
25
answered Efficient extraction of a subset
Jun
25
comment Efficient extraction of a subset
So the natural solution would be Cases, Select, GatherBy... Are those not fast enough for your purpose?
Jun
25
comment Merging lists of pairs
If your data is already in a Dataset, @kglr's Merge solution is probably the best.
Jun
25
answered Merging lists of pairs
Jun
25
comment Turning powers into an explicit product
A space in Mathematica usually implies multiplication. If you are just wanting it for looks purposes, you can use /. Power[f_, e_] :> Row[ConstantArray[f, e]] to replicate what you have.
Jun
25
comment Symbolic cut-off of high-order terms
(+1). I'd probably suggest one thing though. I think you'd have to specify what are the "non-coefficient" variables. So you're example would be... Total @ Exponent[#, {x,y}] & /@ List @@ p and then Pick[P, # < 3 & /@ %], but we'd need further clarification from the OP on that regard...
Jun
25
comment Modifying strings in a list efficiently
Nice. Can't believe it's that much faster though. Crazy. (+1)
Jun
25
awarded  Nice Answer
Jun
25
revised Modifying strings in a list efficiently
added 116 characters in body
Jun
24
revised Modifying strings in a list efficiently
added 104 characters in body