Skip to content

Commit 4c3ed0b

Browse files
committed
renamed slycot_horner to slycot_laub
1 parent 262fde6 commit 4c3ed0b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

control/statesp.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,9 @@ def __call__(self, x, squeeze=True):
472472
else:
473473
return out
474474

475-
def slycot_horner(self, s):
475+
def slycot_laub(self, s):
476476
"""Evaluate system's transfer function at complex frequencies s
477-
using Horner's method from Slycot.
477+
using Laub's method from Slycot.
478478
479479
Expects inputs and outputs to be formatted correctly. Use __call__
480480
for a more user-friendly interface.
@@ -525,7 +525,7 @@ def slycot_horner(self, s):
525525

526526
def horner(self, x):
527527
"""Evaluate system's transfer function at complex frequencies x
528-
using Horner's method.
528+
using Laub's or Horner's method.
529529
530530
Evaluates sys(x) where `x` is `s` for continuous-time systems and `z`
531531
for discrete-time systems.
@@ -545,10 +545,11 @@ def horner(self, x):
545545
546546
Notes
547547
-----
548-
Attempts to use Slycot library, with a fall-back to python code.
548+
Attempts to use Laub's method from Slycot library, with a
549+
fall-back to python code.
549550
"""
550551
try:
551-
out = self.slycot_horner(x)
552+
out = self.slycot_laub(x)
552553
except (ImportError, Exception):
553554
# Fall back because either Slycot unavailable or cannot handle
554555
# certain cases.

0 commit comments

Comments
 (0)