MathGroup Archive 2004

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

Search the Archive

Re: C Code

  • To: mathgroup at
  • Subject: [mg46318] Re: [mg46293] C Code
  • From: Yasvir Tesiram <yasvirat at>
  • Date: Sat, 14 Feb 2004 04:37:54 -0500 (EST)
  • Sender: owner-wri-mathgroup at

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
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.

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

  • Prev by Date: Re: Understanding Flatten
  • Next by Date: Re: Understanding Flatten
  • Previous by thread: C Code
  • Next by thread: Re: please HELP!!!!