Skip to content

Commit a4e4786

Browse files
committed
[statesp.py] cast ss matrices element in float during init
1 parent 537ee0c commit a4e4786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/statesp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _matrix(a):
8484
module.
8585
"""
8686
from numpy import matrix
87-
am = matrix(a)
87+
am = matrix(a, dtype=float)
8888
if (1, 0) == am.shape:
8989
am.shape = (0, 0)
9090
return am

0 commit comments

Comments
 (0)