Skip to main content

Timeline for How can I speed up this code?

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Jul 16, 2014 at 1:09 comment added user14634 @ Teake Nutma, Thank you for the information.
Jul 15, 2014 at 11:18 comment added Teake Nutma @user14634 Then your best bet would be to install Visual Studio Express.
Jul 15, 2014 at 10:42 comment added user14634 @ Teake Nutma, I am using a Windows 7 system.
Jul 15, 2014 at 10:02 comment added Teake Nutma @user14634 Turns out I was wrong: depending on your system you'll need to install compilers. If you're on OS X this might help.
Jul 15, 2014 at 9:57 comment added user14634 I am using Mathematica 8.0; The Compile function can be used, but the warnings appear.
Jul 15, 2014 at 9:51 comment added Teake Nutma @user14634 That shouldn't be necessary. What Mathematica version are you on? The options to Compile I gave (CompilationTarget, RuntimeOptions) only work for Mathematica 8 or newer; if you have 7 or older you can simply omit them. Note that doing so on Mathematica 7 will slow down performance to around 10 seconds.
Jul 15, 2014 at 9:34 comment added user14634 @ Teake Nutma, I met the error of "A C compiler cannot be found on your system. Please consult the documentation to learn how to set up suitable compilers." Should I install some compilers first?
Jul 15, 2014 at 9:23 comment added Teake Nutma You're welcome, but @xzczd's answer is a whole lot better :).
Jul 15, 2014 at 9:21 comment added user14634 Many thanks to Teake Nutma and Ajasja. The Compile function works well.
Jul 15, 2014 at 9:19 vote accept user14634
Jul 15, 2014 at 9:35
Jul 15, 2014 at 8:42 history answered Teake Nutma CC BY-SA 3.0