Title: vectorize FRD feedback function by bnavigator · Pull Request #680 · python-control/python-control · GitHub
Open Graph Title: vectorize FRD feedback function by bnavigator · Pull Request #680 · python-control/python-control
X Title: vectorize FRD feedback function by bnavigator · Pull Request #680 · python-control/python-control
Description: This is a TODO from #314. It overlaps with #679 and one or the other needs a rebase after merge. # frd_bench.py from control import FrequencyResponseData, rss import numpy as np omega = np.logspace(-1, 4, 40000) rss1 = rss(6,10,20,True) rss2 = rss(6,20,10,True) F1 = rss1(omega) F2 = rss2(omega) frd1 = FrequencyResponseData(F1, omega) frd2 = FrequencyResponseData(F2, omega) FB = frd1.feedback(frd2) current master: In [1]: from frd_bench import frd1,frd2 In [2]: %timeit -n 10 -r 3 frd1.feedback(frd2) 1.96 s ± 10.8 ms per loop (mean ± std. dev. of 3 runs, 10 loops each) vectorized: In [1]: from frd_bench import frd1,frd2 In [2]: %timeit -n 10 -r 3 frd1.feedback(frd2) 1.29 s ± 4.48 ms per loop (mean ± std. dev. of 3 runs, 10 loops each)
Open Graph Description: This is a TODO from #314. It overlaps with #679 and one or the other needs a rebase after merge. # frd_bench.py from control import FrequencyResponseData, rss import numpy as np omega = np.logspac...
X Description: This is a TODO from #314. It overlaps with #679 and one or the other needs a rebase after merge. # frd_bench.py from control import FrequencyResponseData, rss import numpy as np omega = np.logspac...
Opengraph URL: https://github.com/python-control/python-control/pull/680
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:77b23502-5ede-1992-7789-318308ccdf9d |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C594:2159A7:15E4C67:1E24F6A:697B26A2 |
| html-safe-nonce | 29042ee1fd7944ae8b7e4c460dbbf3a63cf91103e8cfbe483f485c2cddaad08b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTk0OjIxNTlBNzoxNUU0QzY3OjFFMjRGNkE6Njk3QjI2QTIiLCJ2aXNpdG9yX2lkIjoiNDQ5NTY4ODkzNTAzNjEwMjMwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0697a3ce5e286dfd2f61d29407059e82f079f94f90a7f48c57ac5fde1b9d9a74 |
| hovercard-subject-tag | pull_request:793968089 |
| 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/680/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4623504?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4623504?s=400&v=4 |
| og:image:alt | This is a TODO from #314. It overlaps with #679 and one or the other needs a rebase after merge. # frd_bench.py from control import FrequencyResponseData, rss import numpy as np omega = np.logspac... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26ee438f0a804360f1b93f477a85a7932f8df33f19cc3cc6231e1782206b194a |
| 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 | c845ccd48a615635f346dc49a2d3da3f5224a529 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width