Skip to content

Check for symmetric matrices with machine precision #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 30, 2019

Conversation

bnavigator
Copy link
Contributor

Tricks like (Q + np.transpose(Q))/2 to enforce a symmetric matrix like suggested in #347 should not be necessary.

@coveralls
Copy link

coveralls commented Nov 18, 2019

Coverage Status

Coverage decreased (-2.2%) to 81.578% when pulling 119ad47 on bnavigator:symmetric-eps into a4b4c43 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-9.8%) to 73.963% when pulling fcbde26 on bnavigator:symmetric-eps into a4b4c43 on python-control:master.

@ilayn
Copy link

ilayn commented Nov 18, 2019

This will always cause trouble since you are comparing floats which is the reason for such tricks.

@bnavigator
Copy link
Contributor Author

Why did coverage decrease? I specifically added a test!

@murrayrm murrayrm added this to the 0.8.3 milestone Dec 29, 2019
@murrayrm
Copy link
Member

Reviewed code and changes look good. Ran with updated Travis CI (see PR #353) and all tests past => ready to merge.

@murrayrm murrayrm merged commit e2877a1 into python-control:master Dec 30, 2019
repagh pushed a commit to repagh/python-control that referenced this pull request Jun 9, 2020
* check for symmetric matrices with machine precision
* mateqn_test array instead of deprecated matrix
* test mateqn parameter checks
* check for int first
@bnavigator bnavigator deleted the symmetric-eps branch July 26, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants