Closed mipals closed 1 year ago
Hi Mikkel,
thanks for the interest. You're right - I have not really played around with complex linear algebra, I merely kept the door open so to say. I would be interested to hear your experience with this. I believe that HssMatrices.jl can be easily adapted to accommodate complex linear algebra.
On second inspection, yes this should be easily adapted... I believe that there was a type stability issue and that's why I disabled the Complex option for the ULV algorithm. I will have a look at it!
Cheers Boris
Hi again Boris,
I found that the reason the complex-solve did not work was simply due to the way the memory of the output was allocated. It was easily fixed as you mention :smile: (see my PR)
I also fixed so that you can solve with a Vector
as a righ-hand side. The fix here is not pretty, but it works: Its a simple reshape
, however it does mean that the output will be a Matrix
and not a Vector
. This can probably also be fixed, however I do not have time to look into it before a week or two. For the same reason I did not have time to write actual tests, but I added the PR anyways.
Hi Mikkel, cool! glad to hear that! I will have a look at your PR and the other one in the coming days :)
Ahh, I did not see that the existing PR dealt with the exact same issue 👍 I guess the only new thing about my PR then is the allowance of having a vector as a RHS 😄
Hi, My PR should solve most of the issues for working with complex valued matrices. I am currently using it to solve quantum transport problem, where everything is complex valued.
But, there is still one test that does not pass with ComplexF32 ( have a look to the test file) at leat when using OpenBlas. Hence I never push my last version.
By the way there is typo in the code to get an individual element from a complex valued matrix ( extra conjugaison take place). I can push a fix to my PR for this last problem by the end of the week, I am a bit far from my computer for the moment. Best, Baptiste
Le ven. 13 août 2021 à 14:15, Mikkel Paltorp Schmitt < @.***> a écrit :
Ahh, I did not see that the existing PR dealt with the exact same issue 👍 I guess the only new thing about my PR then is the allowance of having a vector as a RHS 😄
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bonevbs/HssMatrices.jl/issues/16#issuecomment-898417673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVAE64YHRTL3TTUQLF57CDT4UEGBANCNFSM5B6LISAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Hello Baptiste,
Sounds good. Sorry for overlooking your PR! No need to stress, enjoy your vacation (or whatever thing that is keeping you away from your computer 😉 )
Hi guys,
sorry for the silence - I am preparing to defend my thesis and had very little time to work on code. I should have some time soon to check the commits and incorporate them into main code.
Cheers, Boris
Closing as addressed by #17
Hello Boris,
First of all thank you for making this package available. HSS-matrices are something that I for a long time have wanted to play around with. This package finally makes that possible :smile:
My main application are acoustical problems. Here we mostly deal with complex matrices. Do you believe it would be possible to use this package for complex linear algebra?
Even some simple linear algebra such as multiplication seem to initially cause some problems
From the error it is obvious that this can be solved by casting the vector elements to have the same time as the matrix elements
Unfortunately things go wrong when I try to solve the system
I have not been able to find a easy work-around (not that I have spend any reasonable time on it ). Is this something do you believe could be easily fixed?
Cheers, Mikkel