Registered Member
|
Hi all,
I 'm a new user on this forum, so let me start by saying thanks for the developing of the library and also for documentation and support. It's really very helpful. I'm using the the Eigen 3.2.0 for my thesis and I 've stuck on a problem called "reverse communication". In Krylov methods we only need to multiply a matrix by a vector. In case that we don't have the matrix implicitly (that's my case) we can provide a code that returns the result of the multiplication and that's all. So I created a wrapper class that provides an operator*() for the A matrix and I would use it for the GMRES algorithm (currently unsupported) . In a similar thread https://forum.kde.org/viewtopic.php?f=74&t=110556&p=261852&hilit=bicgstab#p261852 I found that I have to create rows() and cols() methods but it seems that there more much to do. After the compiler complained about scalar and index types, I 've added templates :
This is a test class and the matrix is explicitly declared, but in my thesis, I don't have that matrix. So this class is just for testing reasons. Now the compiler complains:
Is there any easier way to implement this? |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]