Reputation
2,248
Next privilege 2,500 Rep.
Create tag synonyms
Badges
6 26
Impact
~64k people reached

Mar
22
comment Faster way to convert triangle list to edge list with no duplicates
Yup, I removed the redundant Sort.
Mar
22
revised Faster way to convert triangle list to edge list with no duplicates
deleted 4 characters in body
Mar
22
comment Faster way to convert triangle list to edge list with no duplicates
btw, looking at your timing results, I should consider buying a new computer :)
Mar
22
comment Faster way to convert triangle list to edge list with no duplicates
Funny. :) It's basically the first approach that I tried. I don't really know a lot about Compile though, so I just left it as it is. And it looks quite nice and clean in my opinion.
Mar
21
answered Faster way to convert triangle list to edge list with no duplicates
Mar
20
awarded  Citizen Patrol
Mar
17
comment How to construct pairs in a list?
f[num_Integer] := Union[Partition[#, 2] & /@ Permutations[Range@num], SameTest -> (Sort[Sort /@ #1] == Sort[Sort /@ #2] &)]
Mar
15
comment How to construct pairs in a list?
Please take a look at the edited post. I have made the solution more general to include single terms such as your example x[1]^2.
Mar
15
revised How to construct pairs in a list?
fixed problem addressed in the comments
Mar
11
revised How to construct pairs in a list?
made code more general
Mar
11
revised How to construct pairs in a list?
added link to user profile
Mar
11
revised How to construct pairs in a list?
added output
Mar
11
answered How to construct pairs in a list?
Mar
7
comment Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs
That's totally fine with me. In fact I'm glad that this question turned out to be of this much interest and spawned such a nice and thorough answer. Thank you!
Mar
7
awarded  Nice Question
Mar
7
accepted Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs
Mar
6
comment Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs
Thanks! This is clean and easy. I knew I was missing something here...
Mar
6
asked Enforcing correct variable bindings and avoiding renamings for conflicting variables in nested scoping constructs
Mar
6
comment How do I create a matrix of functions?
I was rather thinking of a way that really returns a Function object. Now that I'm interested in it, I might actually write up a seperate question.
Mar
6
comment How do I create a matrix of functions?
Good point. I think it's interesting nevertheless, how one can compute complicated things and turn them to a function afterwards. Is there a standard way of replacing certain variables in an expression by Slots in order to create a function?