-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RFC: add ordschur function to base/linalg #8467
Conversation
@@ -659,6 +659,9 @@ function schur(A::AbstractMatrix) | |||
SchurF[:T], SchurF[:Z], SchurF[:values] | |||
end | |||
|
|||
ordschur!{Ty<:BlasFloat}(Q::StridedMatrix(Ty), T::StridedMatrix(Ty), select::Array(Int)) = Schur(LinAlg.LAPACK.trsen!(select, T , Q)...) |
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.
this line throws an error when i try to compile it in https://gist.github.com/axsk/28f297e2207365a7f4e8,
but i don't know why
edit: ok, also throws an error on travis :( but why?
Thank you for contributing this. This looks mainly good, but I'd like the complex version wrapped and some test to check that it works. Also, I think |
@@ -286,3 +286,10 @@ end # for eltya | |||
#6941 | |||
#@test (ones(10^7,4)*ones(4))[3] == 4.0 | |||
|
|||
debug && println("ordschur") | |||
X = [1 2 3 4; 0 6 7 8; 0 0 11 12; 0 0 0 16] |
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.
I wasn't sure where to put this test.
I didn't include a random matrix test, because I see no easy way to automatically select the pairs of eventually occuring conjugate eigenvalues.
mh.. even the static test is failing :( |
Running the code from REPL in Julia 0.3 on my local machine (Win64 8.1) it works when using Int and fails with Cint. What shall I do now? |
Please try again with |
it is working! even on my w64 :) |
Almost there. Last thing needed before we can merge this is a squash of the commits. |
into one? |
Yes, I think one commit would be Ok. |
RFC: add ordschur function to base/linalg
Thank you for the contribution @axsk |
providing the functionality of matlabs ordschur
http://www.mathworks.de/de/help/matlab/ref/ordschur.html