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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:caff96c6-fb49-d272-09d7-cb34f014cd64 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4EA:25AFBB:3348C56:449B2BF:697AF303 |
| html-safe-nonce | 80073130bdfaf67ef748f5de2a4615d4b4fccc909b93687eed830aa86f0ccba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEVBOjI1QUZCQjozMzQ4QzU2OjQ0OUIyQkY6Njk3QUYzMDMiLCJ2aXNpdG9yX2lkIjoiMjI3MTc3NzU3NjY1OTM4MzA0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9743385bd44d3ecbfc1559a9d057f64903643b37fae430adac9b3be54c2848df |
| hovercard-subject-tag | pull_request:793968089 |
| 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/680/files |
| 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 | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width