ControlSystems.jl icon indicating copy to clipboard operation
ControlSystems.jl copied to clipboard

Allow easy creation of complex-coefficient systems using e.g., ss?

Open olof3 opened this issue 6 years ago • 1 comments

Should it for example be allowed to create StateSpace objects using the convenience constructor ss?

Very few users want to use complex-valued linear systems, and will most likely only create them by mistake, leading to confusion.

Some options:

  • Only allow it for the actual constructor StateSpace{Matrix{Complex128}, Complex128}
  • Allow it
  • Allow it, but issue a warning (Matlab does this for example)
  • Some other mechanism

I guess one should also consider (the future possibility) of creating symbolic systems. Any thoughts?

olof3 avatar Jun 26 '18 07:06 olof3

I think that if the elements of the matrices (either A,B,C,D) are complex, there is little reason to throw an error at the user. I say either Allow it or Allow with warning.

mfalt avatar Jun 26 '18 08:06 mfalt