MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to compile this module?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80998] Re: How to compile this module?
  • From: P_ter <peter_van_summeren at yahoo.co.uk>
  • Date: Fri, 7 Sep 2007 02:09:37 -0400 (EDT)

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


  • Prev by Date: Combining Fractions with Identical Denominator?
  • Next by Date: Re: Log of y-axis data?
  • Previous by thread: Re: How to compile this module?
  • Next by thread: random points!