Skip to content
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

fgmres yielded Ax != b #71

Open
raavimohindar opened this issue Jul 22, 2024 · 1 comment
Open

fgmres yielded Ax != b #71

raavimohindar opened this issue Jul 22, 2024 · 1 comment

Comments

@raavimohindar
Copy link

raavimohindar commented Jul 22, 2024

Tested the fgmres with an input from pardiso solver as

A = [7.0+1.0i 0 1.0+1.0i 0 0 2.0+1.0i 7.0+1.0i 0;
0 -4.0+0.0i 8.0+1.0i 0 2.0+1.0i 0 0 0;
0 0 1.0+1.0i 0 0 0 0 5.0+1.0i;
0 0 0 7.0+0.0i 0 0 9.0+1.0i 0;
0 -4.0+1.0i 0 0 0 0 0 0;
0 0 7.0+1.0i 0 0 3.0+1.0i 0 8.0+0.0i;
0 1.0+1.0i 0 0 0 0 11.0+1.0i 0;
0 0 -3.0+1.0i 0 0 0 2.0+1.0i 5.0+0.0i];

b = ones(8,1)+ones(8,1)*i;

x = fgmres(A, b)

x_test = A \ b

yielded,

Ax != b

and

A*x_test = b

May I know whether I have missed passing any more required arguments or is
my setup deficient for the correct solution?

@raavimohindar raavimohindar changed the title fgmres yielded Ax ne b fgmres yielded Ax != b Jul 22, 2024
@dolgov
Copy link
Collaborator

dolgov commented Jul 25, 2024

Which fgmres are you using? That in TT-Toolbox/solve wouldn't run at all like this, it needs a stopping tol in the third argument. Now that given, you can only assume Ax to be within a O(tol) vicinity of b, not necessarily Ax==b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants