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

Iterative solver

Tags: None
(comma "," separated)
CaptainInsano
Registered Member
Posts
5
Karma
0

Iterative solver

Fri Apr 05, 2013 6:51 am
Does eigen3 have an interative solver for Dense matrices?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Iterative solver

Fri Apr 05, 2013 11:43 am
The iterative solvers (CG and BiCGSTAB) should also work on dense matrices:

x = ConjugateGradient<MatrixXd>(A).solve(b);
CaptainInsano
Registered Member
Posts
5
Karma
0

Re: Iterative solver

Fri Apr 05, 2013 3:20 pm
The use of 'sparse' all over the documentation got to me for a second :) One other question. Why do I get std::bad_alloc exception when I try to create a big matrix?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Iterative solver

Fri Apr 05, 2013 7:53 pm
because you run out of memory. How big is your dense matrix?


Bookmarks



Who is online

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