Title: Enable scalar division of state-space objects by roryyorke · Pull Request #811 · python-control/python-control · GitHub
Open Graph Title: Enable scalar division of state-space objects by roryyorke · Pull Request #811 · python-control/python-control
X Title: Enable scalar division of state-space objects by roryyorke · Pull Request #811 · python-control/python-control
Description: I think this is a reasonable if minor improvement; it lets one write gscaled = g / 2 instead of gscaled = g * (1/2). I'm less sure about division by arrays, but I see multiplication by arrays is allowed, and it seems natural to have symmetry between these operations. I added a simple test for StateSpace / scalar and StateSpace / array, but not for InputOutputSystem / scalar. etc. I also modified the type-conversion tests as required.
Open Graph Description: I think this is a reasonable if minor improvement; it lets one write gscaled = g / 2 instead of gscaled = g * (1/2). I'm less sure about division by arrays, but I see multiplication by arrays ...
X Description: I think this is a reasonable if minor improvement; it lets one write gscaled = g / 2 instead of gscaled = g * (1/2). I'm less sure about division by arrays, but I see multiplication by arr...
Opengraph URL: https://github.com/python-control/python-control/pull/811
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6cd68cf4-7f0a-8bcb-6e62-8ca3cc568375 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E2BC:8B63C:1E47C12:2AD77AF:697A54A8 |
| html-safe-nonce | 8af0151696f99e191e2bde515724d083b6950eb35b1b00c4d801d724136b1f92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkJDOjhCNjNDOjFFNDdDMTI6MkFENzdBRjo2OTdBNTRBOCIsInZpc2l0b3JfaWQiOiI0NzY2MjQ0NjY5MTA3OTQ5MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0079e2591b2b26f873253497025293d156570c029f9fc7dee0ceb3aaac99101a |
| hovercard-subject-tag | pull_request:1157531755 |
| 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/811/files |
| twitter:image | https://avatars.githubusercontent.com/u/110974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/110974?s=400&v=4 |
| og:image:alt | I think this is a reasonable if minor improvement; it lets one write gscaled = g / 2 instead of gscaled = g * (1/2). I'm less sure about division by arrays, but I see multiplication by arrays ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2296221ffa83b7f45f8ba9b62e1aed869492cb43693309e51b8111607e38282 |
| 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 | 46d8a07df71eb59259545c68ce36abf1075d2fca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width