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

Assertion `row >= 0 && row < rows() ... failed.

Tags: None
(comma "," separated)
gabrielvc
Registered Member
Posts
6
Karma
0
OS
Hi there,

I am using eigen2 and ldlt to solve the matrix equation K x = b, with K a matrix, b, a known vector, x an unknown vector. This has to be solved several times, the program should run for about 5 hours. After 1.5 hours I got the following error:

bambooEigen.out: /home/gavox/software/eigen2/Eigen/src/Core/Coeffs.h:96: typename Eigen::ei_traits<T>::Scalar& Eigen::MatrixBase<Derived>::operator()(int, int) [with Derived = Eigen::Matrix<double, 10000, 10000, 2, 10000, 10000>]: Assertion `row >= 0 && row < rows() && col >= 0 && col < cols()' failed.

What does it exactly mean?
Thanks very much for your time,

Gabriel
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Steps to debug this:
1) make sure to have compiled your program with full debug info (with GCC, use -g3).
2) run your program in a debugger and get a back-trace (with GDB, do "run" and then "backtrace").

Once you have a backtrace you'll be able to find very easily where in your code is the problem (somewhere you're accessing a matrix entry out of bounds).


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
gabrielvc
Registered Member
Posts
6
Karma
0
OS
Yes, I was. Thanks Benoit.
lovetronic
Registered Member
Posts
3
Karma
0
gabrielvc wrote:Yes, I was. Thanks Benoit.

I am using MVS 2013 have this kind of problem. How can I solve it?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Run in "debug" mode to see if any assertion occur. If not, then please be more specific!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient