-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export minpack API via bind(c) #29
Conversation
de8c29c
to
6fa9287
Compare
923e47d
to
5e2fc7c
Compare
Is there a good reason to export |
Needed them to write the tests in C, as there is not really an equivalent available there. |
Has anyone time to contribute a test or two for the C-API? We should at least test the simplified drivers before merging this PR. |
Sure, I'll see if I can make a test or two for |
This PR is ready to go, we now have full coverage of the C API. |
I'll go ahead and merge this PR. We can always change things later if there is something missing. |
Define C API of minpack:
hybrd
asminpack_hybrd
hybrj
asminpack_hybrj
lmder
asminpack_lmder
lmdif
asminpack_lmdif
lmstr
asminpack_lmstr
(not used in SciPy)chkder
asminpack_chkder
hybrd1
asminpack_hybrd1
hybrj1
asminpack_hybrj1
lmder1
asminpack_lmder1
lmdif1
asminpack_lmdif1
lmstr1
asminpack_lmstr1
minpack_func
callback used byminpack_hybrd
/minpack_hybrd1
minpack_func2
callback used byminpack_lmdif
/minpack_lmdif1
minpack_fcn_hybrj
callback used byminpack_hybrj
/minpack_hybrj1
minpack_fcn_lmder
callback used byminpack_lmder
/minpack_lmder1
minpack_fcn_lmstr
callback used byminpack_lmstr
/minpack_lmstr1
minpack_dpmpar
to access machine constantsvalue
instead ofintent(in)
for export if possiblevoid*
data pointer which is available in the callbackOpen for discussion:
Todo:
add tests for C API (just port Fortran tests to C?)
minpack_hybrd
minpack_hybrd1
minpack_hybrj
minpack_hybrj1
minpack_lmder
minpack_lmder1
minpack_lmdif
minpack_lmdif1
minpack_lmstr
minpack_lmstr1
minpack_chkder
Closes #15