Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test ag08bd agnostic of Af-lambda*Ef scaling #158

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Changes from all commits
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
9 changes: 5 additions & 4 deletions slycot/tests/test_ag08bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
[ 0, 0, 0]])


class test_tg01fd(unittest.TestCase):
""" Verify ag08bd with input parameters according to example in documentation """
class test_ag08bd(unittest.TestCase):
"""Verify ag08bd with input parameters according to example in documentation."""

def test1_ag08bd(self):
"""test [A-lambda*E]
Expand Down Expand Up @@ -108,8 +108,9 @@ def test4_ag08bd(self):

Af,Ef,nrank,niz,infz,kronr,infe,kronl = analysis.ag08bd(l=test1_l,n=test1_n,m=test1_m,p=test1_p,A=test1_A,E=test1_E,B=test1_B,C=test1_C,D=test1_D,equil=test1_equil, tol=test1_tol)

assert_almost_equal(Af, [[0.77045021]])
assert_almost_equal(Ef, [[0.77045021]])
# Af-lambda*Ef==0. => lambda==1. => Finite Smith zero of S(lambda) == 1.
assert Af.shape == (1, 1)
assert_almost_equal(Af, Ef)
assert_equal(nrank, 11)
assert_equal(niz, 2)
assert_equal(infz, [0,1])
Expand Down