Registered Member
|
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 |
Registered Member
|
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! |
Registered Member
|
Yes, I was. Thanks Benoit.
|
Registered Member
|
I am using MVS 2013 have this kind of problem. How can I solve it? |
Moderator
|
Run in "debug" mode to see if any assertion occur. If not, then please be more specific!
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient