Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control · GitHub
Open Graph Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control
X Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control
Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with the selection determined based on the use_numpy_array() function. For backward compatibility, the numpy.matrix class is the current default, but all operations are compatible with using numpy.array as the default storage and output class and this will be the default when numpy.matrix is deprecated. A set of unit tests is also included for testing basic operations when the numpy.array class is used as the state space storage and output class. This PR does not convert all of the existing unit tests to use numpy.array instead of numpy.matrix, so there are still lots of warning messages. At some point we will need to update all unit tests to work with numpy.array objects (as we as done in abandoned PR #292).
Open Graph Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th...
X Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th...
Opengraph URL: https://github.com/python-control/python-control/pull/314
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a6285532-0c58-8c73-406a-bb99cc504d43 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 836A:1070A7:1C234B:267431:697B3FD1 |
| html-safe-nonce | 47167c931156fd8e9ba2a64931e8461e877ba080c1fbd0474f8de7ba0e6e23ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzZBOjEwNzBBNzoxQzIzNEI6MjY3NDMxOjY5N0IzRkQxIiwidmlzaXRvcl9pZCI6Ijc2MjkyNDQyOTc2Mzk1NzU1MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c36b453a33eb4530ea6ed73c987eed36d3df323c2016f9852878774344488adb |
| hovercard-subject-tag | pull_request:288562948 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/314/files |
| twitter:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| og:image:alt | This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width