René's URL Explorer Experiment


Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control · GitHub

Open Graph Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control

X Title: Allow np.array or np.matrix for state space matrices, operations by murrayrm · Pull Request #314 · python-control/python-control

Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with the selection determined based on the use_numpy_array() function. For backward compatibility, the numpy.matrix class is the current default, but all operations are compatible with using numpy.array as the default storage and output class and this will be the default when numpy.matrix is deprecated. A set of unit tests is also included for testing basic operations when the numpy.array class is used as the state space storage and output class. This PR does not convert all of the existing unit tests to use numpy.array instead of numpy.matrix, so there are still lots of warning messages. At some point we will need to update all unit tests to work with numpy.array objects (as we as done in abandoned PR #292).

Open Graph Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th...

X Description: This PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th...

Opengraph URL: https://github.com/python-control/python-control/pull/314

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a6285532-0c58-8c73-406a-bb99cc504d43
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id836A:1070A7:1C234B:267431:697B3FD1
html-safe-nonce47167c931156fd8e9ba2a64931e8461e877ba080c1fbd0474f8de7ba0e6e23ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzZBOjEwNzBBNzoxQzIzNEI6MjY3NDMxOjY5N0IzRkQxIiwidmlzaXRvcl9pZCI6Ijc2MjkyNDQyOTc2Mzk1NzU1MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc36b453a33eb4530ea6ed73c987eed36d3df323c2016f9852878774344488adb
hovercard-subject-tagpull_request:288562948
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/314/files
twitter:imagehttps://avatars.githubusercontent.com/u/293362?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/293362?s=400&v=4
og:image:altThis PR addresses issue #233 regarding (eventual) deprecation of the numpy.matrix class. In this PR, state space objects are stored as either numpy.matrix (default) or numpy.array objects, with th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release15736a47b83581130a149aa1b928696bea06adde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/pull/314/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F314%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F314%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/pull/314/files
Reloadhttps://github.com/python-control/python-control/pull/314/files
Reloadhttps://github.com/python-control/python-control/pull/314/files
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
murrayrmhttps://github.com/murrayrm
python-control:masterhttps://github.com/python-control/python-control/tree/master
murrayrm:ss_matrixhttps://github.com/murrayrm/python-control/tree/ss_matrix
Conversation 13 https://github.com/python-control/python-control/pull/314
Commits 4 https://github.com/python-control/python-control/pull/314/commits
Checks 0 https://github.com/python-control/python-control/pull/314/checks
Files changed https://github.com/python-control/python-control/pull/314/files
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
Allow np.array or np.matrix for state space matrices, operations https://github.com/python-control/python-control/pull/314/files#top
Show all changes 4 commits https://github.com/python-control/python-control/pull/314/files
0c1e983 allow np.array or np.matrix for state space matrices + unit tests murrayrm Jun 15, 2019 https://github.com/python-control/python-control/pull/314/commits/0c1e9832f6bc6042fd11782de56ecbab1f91033b
4c9c2c8 fixed docstring example error + added TODO's in response to review murrayrm Jun 17, 2019 https://github.com/python-control/python-control/pull/314/commits/4c9c2c876f3c40c872d5af5038987b4ba6990537
4f48c5d allow D=0 to broadcast to correct size for MIMO statespace systems murrayrm Jun 23, 2019 https://github.com/python-control/python-control/pull/314/commits/4f48c5df380ce055995531bc1b8b682d38d75a07
7c9d9a6 change np.bmat -> np.block in timeresp.py murrayrm Jun 30, 2019 https://github.com/python-control/python-control/pull/314/commits/7c9d9a6ee283ab134ee994710d7a2d07a65e3761
Clear filters https://github.com/python-control/python-control/pull/314/files
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
bdalg.py https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
config.py https://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
frdata.py https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
mateqn.py https://github.com/python-control/python-control/pull/314/files#diff-063352893924b087df21a9816e0ee3e35db0bf1ad96e263c6c8f4fa5981995aa
modelsimp.py https://github.com/python-control/python-control/pull/314/files#diff-47ef25709027cfe03ce27958643e45485de7bf664578a305643715bdceba9b78
statefbk.py https://github.com/python-control/python-control/pull/314/files#diff-dbb4a524ae36f7833fa7b5991007098ea0b11b1f8a5d30831c641f5e6d39e0cb
statesp.py https://github.com/python-control/python-control/pull/314/files#diff-b5aac033a6dd07653e82d9f5a40afaa775010c2d2d5af8beeb159487b566df72
config_test.py https://github.com/python-control/python-control/pull/314/files#diff-5eadccfa15bf2713ea447a592131d9404915a826d9b41f54d5ef4b2631f24067
modelsimp_array_test.py https://github.com/python-control/python-control/pull/314/files#diff-f341323e7cc28c16c5e385aaaa9bc35e4e5a3b1ae2e43dbd0a020087f2ba87d5
modelsimp_test.py https://github.com/python-control/python-control/pull/314/files#diff-f5ee5e873243b37690868ede3ea4a02a0e4e6b5670095107af0415f40cd86b65
robust_array_test.py https://github.com/python-control/python-control/pull/314/files#diff-25f18f7f0a77168dea2b3530de2faf8f0eee463bcec35a6e3a4e012bc7e365f0
statefbk_array_test.py https://github.com/python-control/python-control/pull/314/files#diff-c4884e9d6c83d70c83398483db2e020c4e3c75c97a933b501ffe2fa69cb8fbf7
statesp_array_test.py https://github.com/python-control/python-control/pull/314/files#diff-c603a95d3cdb97ab8c48979612358e1e512a21385ab11330c7fc4090647e1bce
statesp_test.py https://github.com/python-control/python-control/pull/314/files#diff-4c76080acbdea36493458693d93ec10e4e10b2e04ce01c56e8a81567cc1ea0d6
timeresp.py https://github.com/python-control/python-control/pull/314/files#diff-3200453f1cf62f183f04dbf39d1129d91245c53a9f74675cee6bd384351c45b4
control/bdalg.pyhttps://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
View file https://github.com/murrayrm/python-control/blob/7c9d9a6ee283ab134ee994710d7a2d07a65e3761/control/bdalg.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/314/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
https://github.com/python-control/python-control/pull/314/files#diff-bfd06fb2f8c259261d6ca31b01ff2f68525fd4936b7ff911434f757a8e9201c6
control/config.pyhttps://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
View file https://github.com/murrayrm/python-control/blob/7c9d9a6ee283ab134ee994710d7a2d07a65e3761/control/config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/314/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
https://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
https://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
https://github.com/python-control/python-control/pull/314/files#diff-d1ad1d32d49067e21beadf8da713ffdea3d1673aedb13dbbf54028cb7e8e4cb5
control/frdata.pyhttps://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
View file https://github.com/murrayrm/python-control/blob/7c9d9a6ee283ab134ee994710d7a2d07a65e3761/control/frdata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/314/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
roryyorkehttps://github.com/roryyorke
Jun 16, 2019https://github.com/python-control/python-control/pull/314/files#r294075154
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
murrayrmhttps://github.com/murrayrm
Jun 17, 2019https://github.com/python-control/python-control/pull/314/files#r294108324
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
https://github.com/python-control/python-control/pull/314/files#diff-cacf59417131c19becd6fba4dde9e979bed49ce572eb24f0f62bd2af460d83d1
Please reload this pagehttps://github.com/python-control/python-control/pull/314/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.