Timeline for List manipulation: position & max value combination
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 10, 2019 at 14:12 | history | edited | Mr.Wizard | CC BY-SA 4.0 |
added 511 characters in body
|
Jan 13, 2014 at 16:13 | comment | added | Mr.Wizard | @VF1 I know I'm supposed to be a wizard but I can't see into the future. :-p | |
Jan 13, 2014 at 16:01 | comment | added | VF1 | @Mr.Wizard the one I just posted on this very question. | |
Jan 13, 2014 at 15:38 | comment | added | Mr.Wizard | @VF1 pardon me, what answer? | |
Jan 13, 2014 at 15:37 | comment | added | VF1 | @Mr.Wizard see my posted answer | |
Jan 13, 2014 at 9:00 | comment | added | Mr.Wizard |
@VF1 That's an interesting finding. I know that the code behind SparseArray generation is highly optimized which is why it often outperforms more obvious and direct solutions, at least in version 7. Have you tried compiling Position to C? I recall someone reporting that as being very fast.
|
|
Jan 11, 2014 at 20:58 | comment | added | VF1 |
@Mr.Wizard f2 is surprisingly much faster than the typical C solution, when compiled (on my computer).
|
|
Jan 11, 2014 at 20:34 | comment | added | Mr.Wizard | @s0rce I use version 7 which seems to be faster than later versions in a number of cases of basic programming. But yes, I have found clock speed to correlate well with Mathematica performance and I run an unlocked i5-2500K CPU at 4.6 GHz. | |
Jan 11, 2014 at 20:29 | comment | added | s0rce | @Mr.Wizard you do have a fast computer: mathematica.stackexchange.com/questions/28209/… | |
Jan 11, 2014 at 19:29 | comment | added | martin | @ Mr Wizard, thanks for the time you have given to this - I will test once Mathematica has evaluated what I have given it! | |
Jan 11, 2014 at 19:25 | history | edited | Mr.Wizard | CC BY-SA 3.0 |
added 502 characters in body
|
Jan 11, 2014 at 18:59 | history | edited | Mr.Wizard | CC BY-SA 3.0 |
efficiency tweak
|
Jan 11, 2014 at 18:56 | vote | accept | martin | ||
Jan 11, 2014 at 18:45 | history | answered | Mr.Wizard | CC BY-SA 3.0 |