-
Notifications
You must be signed in to change notification settings - Fork 56
Add rank and cond
#220
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
Add rank and cond
#220
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #220 +/- ##
==========================================
+ Coverage 82.44% 82.51% +0.06%
==========================================
Files 43 43
Lines 5536 5552 +16
==========================================
+ Hits 4564 4581 +17
+ Misses 972 971 -1 ☔ View full report in Codecov by Sentry. |
|
Looks good to me. Is the "add tests" an actual todo? |
|
What is an "actual" to do? I would definitely say "should do"... |
|
I am making some changes (the condition number of the map on an empty space should be one, not zero. Condition numbers lie in the range [1, +inf]). But now for the difficult question: should rank count the degeneracy, i.e. is it |
|
With regards to the condition number, I took this from LinearAlgebra, see also this discussion and the related MATLAB discussion. I have no opinion about this I think, whatever you feel is most consistent is good to me. For the rank, I guess if the matrix is full rank, you would expect |
|
Ok I see regarding condition number. Not my favorite pick, but I can live with it for consistency. For the rank, that choice would include quantum dimensions, which I am definitely happy with as we also do this in other places. |
Committer: Jutho Haegeman <[email protected]>
|
@lkdvos , if the tests pass, this is good to go for me. |
|
Nightly test failures are unrelated, so I'm merging this now. |
I added the utility
rankandcondfunctions, since I thought this would help fix #219 . I overlooked that thereSis already a vector, so that actually didn't help, but it might be useful anyways?To do