-
Notifications
You must be signed in to change notification settings - Fork 176
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
(Update on PR #543) Fixed TypeError in LU_comp
, updated determinant
docs and added rank
function for matrices
#610
Conversation
There are test failures. |
minor changes to fixe test failures. tests should work now (as you can check here). |
sorry, another fix needed in docs. locally I can build docs without failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, except for minor nitpicks below.
Could you, please, also do a rebase? Probably, there should be four commits:
- update on .gitignore
- issue in LU_comp (with a test)
- det docs
- rank function (with tests)
@@ -134,6 +134,9 @@ def LU_decomp(ctx, A, overwrite=False, use_cache=True): | |||
if current > biggest: # TODO: what if equal? | |||
biggest = current | |||
p[j] = k | |||
# without pivot LU fails | |||
if p[j] is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what happens for the test case A11
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
mpmath/matrices/linalg.py
Outdated
columns (or rows equivalently). | ||
|
||
Rank is computed via singular value decomposition | ||
by counting the number of non-zero singular values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please document the iszerofunc
parameter, and maybe add an example using it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added tests some example for iszerofunc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my side, I only had minor additional comments. I agree with @skirpichev's comments.
update imports in test_linalg.py custom `iszerofunc` in rank determination adding rank of matrix via counting eigenvalues form svd_r
This is an update on PR #543
LU_comp
which raised TypeError on singular matricesdeterminant
function of matricesrank
function of matrices(PR #543 was originally opened and closed by sonntagsgesicht)