Skip to content

Commit 69efdfe

Browse files
committed
Fix documentation and whitespace
1 parent d29c2d4 commit 69efdfe

2 files changed

Lines changed: 12 additions & 18 deletions

File tree

‎control/mateqn.py‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def lyap(A, Q, C=None, E=None, method=None, symmetric_kwargs=None):
118118
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
119119
and then 'scipy'.
120120
symmetric_kwargs : dict, optional
121-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
122-
such as `atol` and `rtol`.
121+
Keyword arguments passed to `scipy.linalg.issymmetric` or
122+
`scipy.linalg.ishermitian`.
123123
124124
Returns
125125
-------
@@ -146,7 +146,6 @@ def lyap(A, Q, C=None, E=None, method=None, symmetric_kwargs=None):
146146
equations", Advances in Computational Mathematics, 8:33-48, 1998.
147147
148148
"""
149-
150149
# Decide what method to use
151150
method = _slycot_or_scipy(method)
152151
if method == 'slycot':
@@ -284,8 +283,8 @@ def dlyap(A, Q, C=None, E=None, method=None, symmetric_kwargs=None):
284283
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
285284
and then 'scipy'.
286285
symmetric_kwargs : dict, optional
287-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
288-
such as `atol` and `rtol`.
286+
Keyword arguments passed to `scipy.linalg.issymmetric` or
287+
`scipy.linalg.ishermitian`.
289288
290289
Returns
291290
-------
@@ -323,7 +322,6 @@ def dlyap(A, Q, C=None, E=None, method=None, symmetric_kwargs=None):
323322
equation AX + XB = C", Comm. ACM, 15(9), pp. 820-826, 1972.
324323
325324
"""
326-
327325
# Decide what method to use
328326
method = _slycot_or_scipy(method)
329327

@@ -493,8 +491,8 @@ def care(A, B, Q, R=None, S=None, E=None, stabilizing=True, method=None, symmetr
493491
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
494492
and then 'scipy'.
495493
symmetric_kwargs : dict, optional
496-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
497-
such as `atol` and `rtol`.
494+
Keyword arguments passed to `scipy.linalg.issymmetric` or
495+
`scipy.linalg.ishermitian`.
498496
stabilizing : bool, optional
499497
If `method` is 'slycot', unstabilized eigenvalues will be returned
500498
in the initial elements of `L`. Not supported for 'scipy'.
@@ -509,7 +507,6 @@ def care(A, B, Q, R=None, S=None, E=None, stabilizing=True, method=None, symmetr
509507
Gain matrix.
510508
511509
"""
512-
513510
# Decide what method to use
514511
method = _slycot_or_scipy(method)
515512

@@ -653,8 +650,8 @@ def dare(A, B, Q, R, S=None, E=None, stabilizing=True, method=None, symmetric_kw
653650
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
654651
and then 'scipy'.
655652
symmetric_kwargs : dict, optional
656-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
657-
such as `atol` and `rtol`.
653+
Keyword arguments passed to `scipy.linalg.issymmetric` or
654+
`scipy.linalg.ishermitian`.
658655
stabilizing : bool, optional
659656
If `method` is 'slycot', unstabilized eigenvalues will be returned
660657
in the initial elements of `L`. Not supported for 'scipy'.
@@ -669,7 +666,6 @@ def dare(A, B, Q, R, S=None, E=None, stabilizing=True, method=None, symmetric_kw
669666
Gain matrix.
670667
671668
"""
672-
673669
# Decide what method to use
674670
method = _slycot_or_scipy(method)
675671

‎control/stochsys.py‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def lqe(*args, symmetric_kwargs=None, **kwargs):
8484
'slycot' and 'scipy'. If set to None (default), try 'slycot' first
8585
and then 'scipy'.
8686
symmetric_kwargs : dict, optional
87-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
88-
such as `atol` and `rtol`.
87+
Keyword arguments passed to `scipy.linalg.issymmetric` or
88+
`scipy.linalg.ishermitian`.
8989
9090
Returns
9191
-------
@@ -136,7 +136,6 @@ def lqe(*args, symmetric_kwargs=None, **kwargs):
136136

137137
# Get the method to use (if specified as a keyword)
138138
method = kwargs.pop('method', None)
139-
140139
if kwargs:
141140
raise TypeError("unrecognized keyword(s): ", str(kwargs))
142141

@@ -225,8 +224,8 @@ def dlqe(*args, symmetric_kwargs=None, **kwargs):
225224
'slycot' and 'scipy'. If set to None (default), try 'slycot'
226225
first and then 'scipy'.
227226
symmetric_kwargs : dict, optional
228-
Keyword arguments passed to the SciPy symmetry/Hermitian check,
229-
such as `atol` and `rtol`.
227+
Keyword arguments passed to `scipy.linalg.issymmetric` or
228+
`scipy.linalg.ishermitian`.
230229
231230
Returns
232231
-------
@@ -259,7 +258,6 @@ def dlqe(*args, symmetric_kwargs=None, **kwargs):
259258

260259
# Get the method to use (if specified as a keyword)
261260
method = kwargs.pop('method', None)
262-
263261
if kwargs:
264262
raise TypeError("unrecognized keyword(s): ", str(kwargs))
265263

0 commit comments

Comments
 (0)