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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:ff08e52c-6444-d177-edc3-c054cd66ae03 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A7D8:4C179:1023BAF:1635AF8:697A8265 |
| html-safe-nonce | 1567e1c22beaa5fd3429fcfe8846838281652025b4dbec8322b2074fba484315 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0Q4OjRDMTc5OjEwMjNCQUY6MTYzNUFGODo2OTdBODI2NSIsInZpc2l0b3JfaWQiOiI0ODQwNDI0NDg5MzQ0NDY3NTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81822be2a7aac4c611c259d5eac76d564a5f3498c75b352c32315d60ca889504 |
| hovercard-subject-tag | pull_request:1157531755 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | f6192227ebb08ae3d66e887f7363efea6f1ba29abe280990e1f6ad2d2962b6c8 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f58967b50cdccb4b617fbacac94376e17eef59e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width