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:19b0fe64-a26a-868e-75bb-af3435b8658a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9ED2:3C7D23:4613DE0:5EB9B40:697B2179 |
| html-safe-nonce | 7535ae378d72b96249a8e47dc58c8d1dac087a3bf1a508adb7f6801cf1793227 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQyOjNDN0QyMzo0NjEzREUwOjVFQjlCNDA6Njk3QjIxNzkiLCJ2aXNpdG9yX2lkIjoiNTQyMDc0NDk2MTI1MzEyMjQyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45a918f96980a7f613a8fae9c465086d1a95ae0f0569b5257a1da6beacaebc84 |
| 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 | 82440e908b5650143b0930c6bf91e184f2bad20c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width