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
The plan is to shift away from the use of the np.matrix class at a future point. This functionality is already in place through the use of the use_numpy_matrix function. In version 0.8.3, the np.matrix class is still used for backward compatibility, but you can switch to using arrays through the function call
control.use_numpy_matrix(False)
When we release version 0.9.0, we will switch to have np.ndarray be the default class for all matrices in python-control.
I'll leave this issue open for a bit because I think we generally need to update the documentation to reflect that fact that the return type for functions depends on how you have configured python-control. I've been collecting up documentation updates, so will include those changes in that PR.
* fix typos, equation numbering in doc/flatsys.rst
* small updates (including numpydoc fixes) to statefbk.py, mateqn.py docstrings
* update setup.py contact info
* small fixes to iosys docstrings (from samlaf)
* update lqr() return type documentation (addresses #418)
* added 2D array/matrix note to all functions using _ssmatrix
* PEP8 formatting updates for statefbk.py, mateqn.py (while I was at it)
I think the doc about the return type of the lqr function looks inconsistent:
https://python-control.readthedocs.io/en/0.8.1/generated/control.lqr.html
states that K is a 2-d array. But it looks a lot like a matrix actually :)
This is Python 3.6.9, control 0.8.3, Ubuntu 18.04 defaults.
This leads to possibly subtle bugs:
https://stackoverflow.com/questions/62342225/how-to-squeeze-when-numpy-squeeze-does-not-seem-to-squeeze?
Do you think it may be a good idea to 1) update the doc 2) maybe change from matrix to array output altogether? :)
The text was updated successfully, but these errors were encountered: