This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with solveWithGuess and BiCGSTAB

Tags: None
(comma "," separated)
hkannan
Registered Member
Posts
9
Karma
0
In the example, there are two CG systems. In one, solve() is called with b as parameter. The default initialization is zero. In the other system, solveWithGuess is called with b and x0 (which is a vector of zeros). Hence, both systems start with zero vector as initial point. So, I expected both to take the same step after one iteration.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
The default initialization is not zero.
hkannan
Registered Member
Posts
9
Karma
0
Thanks for the clarification.

Please, change the documentation here:

"By default the iterations start with x=0 as an initial guess of the solution."

It looks like zero vector is going to be the default in upcoming release:

"ConjugateGradient and BiCGSTAB now properly use a zero vector as the default guess."


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]