MathGroup Archive 2000

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

Search the Archive

Re: Mathlink two way communication

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22670] Re: Mathlink two way communication
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 18 Mar 2000 01:27:46 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <8aqqig$a3n@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

tow way communication mean that your C-function can call back to the
kernel during the evaluation of a function call to print messages
or evaluate some data.

For your problems that helps you nothing :-)
You have to setup two functions, one that take the
huge data and store it in your C-data space and a 
second one that perform the action you like *if* the
data area is filled.

Regards
  Jens

Johannes Ludsteck wrote:
> 
> Dear Mathgroup Members,
> I would like to set up a External C function with two arguments: a
> _very_ large list of data and a short list of parameters.
> Since the function is called very often from Mathematica, it would
> increase speed considerable if the large data list were transferred
> in the first call and only the parameter list is tranferred in
> subsequent calls. (The data remain the same, only the parameters
> change).
> It's not clear to me, whether section 2.12.9 "Two Way
> Communication with External Programs" serves my needs.
> 
> Any suggestions? (A example program or piece of code would be
> very useful for me too).
> 
> Thank you,
>         Johannes Ludsteck


  • Prev by Date: Re: [Q] Differential equation?
  • Next by Date: Re: cubic polynomial
  • Previous by thread: Re: Mathlink two way communication
  • Next by thread: FindMinimum