Skip to content
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

Sb10ad fix synthesis.pyf #4

Merged
merged 2 commits into from
Mar 10, 2016
Merged

Sb10ad fix synthesis.pyf #4

merged 2 commits into from
Mar 10, 2016

Conversation

roryyorke
Copy link

The sb10ad entry in synthesis.pyf did not infer ldac, ldab, ldac, ldad values from ac, bc, cc, dc, but instead looked like

    integer intent(hide), depend(ak) :: ldak=shape(ak,0)
    [... lines omitted]
    integer intent(hide), depend(ac) :: ldak=shape(ac,0)

The last line should be ldac, not ldak; the same bug is present for ldbc, etc.

I'm don't know enough about f2py to know if it should have raised a warning or error in this case.

Added a simple test for this case.

The fix is a bit of a guess, but after this the signature matches that
expected by synthesis.py's use of _wrapper.sb10ad, and a simple test
case works.
Simple-as-possible test, with some reference values from Octave.
jgoppert added a commit that referenced this pull request Mar 10, 2016
@jgoppert jgoppert merged commit 234447c into jgoppert:master Mar 10, 2016
@roryyorke roryyorke deleted the sb10ad-fix-pyf branch June 27, 2016 16:57
cwrowley pushed a commit to cwrowley/Slycot that referenced this pull request Dec 26, 2016
Use conda for building (and consequently drop Py 2.6, 3.2, add 3.4, 3.5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants