Solving a complex sparse linear system #1689
Unanswered
marco-butz
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Hi @marco-butz, I tried running your complex matrix with our solver benchmark and it also didn't converge with CG. It did converge however when I used GMRES. Did you check if your complex matrix is supposed to be solvable with CG, e.g. in matlab or similar. For CG with complex matrices it's not enough if the matrix is symmetric, it has to be hermitian. |
Beta Was this translation helpful? Give feedback.
7 replies
-
I have checked with python scipy cg on 4x4 complex matrix.
could you share the solution from your CG with MKL? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi together,
I'm trying to solve a complex sparse linear system using the following code using Ginkgo 1.8.0:
My problem is, that the solution diverges when I use complex matrices. Testing it with real-valued matrices worked just fine.
The output for complex valued matrices:
The output for real valued matrices:
I attached the mtx files I used for testing. Does anyone know what is the problem here?
real.zip
complex.zip
Beta Was this translation helpful? Give feedback.
All reactions