You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that if I have complex numbers in my A,B,C,D state space matrices, there's casting complex numbers to real in control.StateSpace(A,B,C,D) which does not appear to be right (?) if there's imaginary part. Is it intentional? Is there a way around it?
Specifically, I think this line is responsible: https://github.com/python-control/python-control/blob/main/control/statesp.py#L2170. Note dtype=float. I have matrices with dtype=complex128. Minimally reproducible example (matrices are completely made up here, of course the real state space I'm working with is more realistic but also much bigger):