Skip to content

Commit

Permalink
Merge pull request #40 from ilayn/numpy_fix
Browse files Browse the repository at this point in the history
MAINT: Use _assertNdSquareness
  • Loading branch information
ilayn authored Oct 28, 2018
2 parents 268e5c9 + f6c0635 commit 5c0cb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harold/_system_props.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from numpy import count_nonzero, block
from numpy.linalg.linalg import (_assertRank2, _assertSquareness,
from numpy.linalg.linalg import (_assertRank2, _assertNdSquareness,
_assertNoEmpty2d, _makearray)
from scipy.linalg import solve, norm, eigvals, qr

Expand Down Expand Up @@ -221,7 +221,7 @@ def controllability_indices(A, B, tol=None):
b, _ = _makearray(B)
_assertRank2(a, b)
_assertNoEmpty2d(a, b)
_assertSquareness(a)
_assertNdSquareness(a)

n, m = b.shape

Expand Down

0 comments on commit 5c0cb18

Please # to comment.