You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SB10FD exits whole process on parameter error #126
[ben@voyagerS9:~]% python [0]
Python 3.8.2 (default, Apr 8 2020, 14:31:25)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from slycot import synthesis
>>> from numpy import array
>>> A = array([[-1, 0, 0], [0, -12, -5], [0, 4, 0]])
>>> B = array([[2, 0], [0, 0.5], [0, 0]])
>>> C = array([[-0.5, 0, -0.5], [0, 0, 0], [-0.5, 0, -0.5]])
>>> D = array([[0, 0], [0, 1], [0, 0]], dtype=float)
>>> synthesis.sb10fd(3, 2, 3, 1, 1, 100, A, B, C, D, 1e-7, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ben/src/Slycot/_skbuild/linux-x86_64-3.8/cmake-install/slycot/synthesis.py", line 2717, in sb10fd
raise_if_slycot_error(out[-1], arg_list, sb10fd.__doc__)
File "/home/ben/src/Slycot/_skbuild/linux-x86_64-3.8/cmake-install/slycot/exceptions.py", line 236, in raise_if_slycot_error
raise globals()[exception](fmessage, info)
slycot.exceptions.SlycotArithmeticError:
The Y-Riccati equation was not solved
successfully (the controller is not admissible or
there are numerical difficulties)
>>> synthesis.sb10fd(1,1,1,0,1,1,[1],[1],[1],[1],1e-3,1)
** On entry to SB10FD parameter number 20 had an illegal value
[ben@voyagerS9:~]% [0]
The last drop out of the whole Python process should not happen. A simple Exception should be enough. Probably have to patch the Fortran code?
The Travis jobs suffering from this bug use the Netlib reference LAPACK implementation. I wonder if my Archlinux system also uses that despite having compiled against openblas...
Activity
bnavigator commentedon May 17, 2020
A quick search on the internet reveals that various libs override XERBLA not to STOP.
From the netlib docu:
So Travis CI and my OpenSUSE system work fine with the sb10fd unit tests. Apparently not on the Archlinux system I tested this with...
repagh commentedon May 18, 2020
Is this dependent on the LAPACK version used? Which LAPACK does this link to?
bnavigator commentedon May 18, 2020
openblas 0.3.9 on Archlinux.
libopenblas_pthreads 0.3.9 on OpenSUSE does not exhibit this behavior.
bnavigator commentedon May 19, 2020
Interestingly Job 387.4 for #129 should fail but does not, because of this bug.
The Travis jobs suffering from this bug use the Netlib reference LAPACK implementation. I wonder if my Archlinux system also uses that despite having compiled against openblas...