Re: C Code
- To: mathgroup at smc.vnet.net
- Subject: [mg46318] Re: [mg46293] C Code
- From: Yasvir Tesiram <yasvirat at ip68-12-182-5.ok.ok.cox.net>
- Date: Sat, 14 Feb 2004 04:37:54 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Am not really an expert in anything and definitely master of none but some things that have helped me include, perhaps look at using Compile. Use packed arrays to convert internal Mathematica representation of reals, integers etc. This saves memory usage more than anything and leads to efficiency. Most of what is written in C can be exchanged in and out of Mathematica via mathlink. Its all documented in the help files. Good luck. Cheers Yas On Fri, 13 Feb 2004, Uli Wuerfel wrote: > Hi experts, > I wrote a small program to solve a differential equation numerically. > It works quite well, but is rather (very) slow. > Is there a possibility to let Mathematica somehow translate it into more > efficient code? > And how is it with a code written in C, can that be transferred to > Mathematica? > Thank you for any help, > Uli >