Skip to content
Snippets Groups Projects
Commit 13703fa9 authored by Liam M. Healy's avatar Liam M. Healy
Browse files

Arrays passed to and received from callbacks are foreign-arrays

Using the new function faify-form, pointers passed by GSL to callbacks
are converted to foreign-array objects if scalarsp is nil.  This has
been tested on multidimensional minimization only so far, and works.
Note that this is potentially inefficient, as each time the callback
is called, new objects are made and in the callback itself any grefs
involve a generic function dispatch.  However, it is easier to write
the callback than dealing with the raw pointer.
parent 336f1ceb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment