help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing a data structure to lsode?


From: John W. Eaton
Subject: Passing a data structure to lsode?
Date: Wed, 21 Oct 1998 12:13:30 -0500 (CDT)

On 21-Oct-1998, Suttipan Limanond <address@hidden> wrote:

| I have a data structure, says 'y', that I want to pass to the
| derivative evaluating function ('D') associated with "lsode". Is
| this possible? What about a vector or a matrix? I plan to write the
| function 'D' as a DLL.

Make the structure (or vector, matrix, whatever) global.

You can access global values in dynamically linked functions using
get_global_value and set_global_value.  These functions are declared
in variables.h and defined in variables.cc.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]