Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update lqr() return type documentation (addresses #418)
  • Loading branch information
murrayrm committed Dec 22, 2020
commit 3e6347f2f4f18817a822546af13d49c2d63d1d93
10 changes: 8 additions & 2 deletions control/statefbk.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ def lqr(*args, **keywords):

Returns
-------
K: 2D array
K: 2D array (or matrix)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numpydoc:

Suggested change
K: 2D array (or matrix)
K : 2D array (or matrix)

Same for all the other functions in this file, which are a mix of numpydoc and non-numpydoc right now.

State feedback gains
S: 2D array
S: 2D array (or matrix)
Solution to Riccati equation
E: 1D array
Eigenvalues of the closed loop system
Expand All @@ -390,6 +390,12 @@ def lqr(*args, **keywords):
--------
lqe

Notes
-----
The return type for `K` and `S` depends on the default class set for
state space operations. By default, this is the Numpy `matrix`
class in this release, but this can be reconfigured using the
:func:`~control.use_numpy_matrix` function.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also true for most of the other functions in this file. Maybe a general note referenced here and in those functions would be preferable. Cf. #439

"""

# Make sure that SLICOT is installed
Expand Down