control.use_numpy_matrix(flag=True, warn=True)

Turn on/off use of Numpy matrix class for state space operations.

  • flag (bool) – If flag is True (default), use the Numpy (soon to be deprecated) matrix class to represent matrices in the ~control.StateSpace class and functions. If flat is False, then matrices are represented by a 2D ndarray object.
  • warn (bool) – If flag is True (default), issue a warning when turning on the use of the Numpy matrix class. Set warn to false to omit display of the warning message.