[Date Index] [Thread Index] [Author Index]
Re: How to compile this module?
Thanks to all. I had also response outside this group. Well, this is my impression: compiling with Mathematica is of a special nature. Compiling in C can take in library functions which are written in assembly. Also, it seems that a list must be of type Real. Return variables, so I was told, can be tensors: but not irregular arrays. Yet, some mails to me contained code which gave a speed-up of 30 (in my case of a special built list of 30 0000 integers). I used Sow/Reap because that was in the documents. The speed-up was established by taking other basic functions, like Table and Do, instead of For. As for now: I am not able to find out myself if Sow/Reap, as compiled, are no big deal. That is a pity. There can be good reasons from the point of view of Mathematica, but I have no idea why/how/why not etc. From my view point this is a limitation. Thanks to all. with friendly greetings, P_ter