control.statesp._convert_to_statespace

control.statesp._convert_to_statespace(sys, use_prefix_suffix=False, method=None)[source]

Convert a system to state space form (if needed).

If sys is already a state space object, then it is returned. If sys is a transfer function object, then it is converted to a state space and returned.

Note: no renaming of inputs and outputs is performed; this should be done by the calling function.