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

Eigen error

Tags: None
(comma "," separated)
zakibob
Registered Member
Posts
3
Karma
0

Eigen error

Sun Mar 29, 2015 1:48 pm
Hello, i have this error log, and i don't know what that mean, Thanks
Code: Select all
mycode: /usr/include/Eigen/src/Core/Block.h:128: Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Block(XprType&, Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Index, Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Index) [with XprType = Eigen::Matrix<double, -1, -1>; int BlockRows = 2; int BlockCols = 2; bool InnerPanel = false; Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Index = long int]: Assertion `a_startRow >= 0 && BlockRows >= 1 && a_startRow + BlockRows <= xpr.rows() && a_startCol >= 0 && BlockCols >= 1 && a_startCol + BlockCols <= xpr.cols()' failed.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Eigen error

Mon Mar 30, 2015 7:39 am
That mean you are calling the .block() method (or a similar one like middleRows, topLeftCorner, head, etc.) with out-of range values. Run your program in a debugger to see the call stack and find the respective line in your code.
zakibob
Registered Member
Posts
3
Karma
0

Re: Eigen error

Mon Mar 30, 2015 11:03 am
Hello ggael and thanks for reply, sorry if my question is stupid :< but what do you mean by running the program in a debugger and how do that ? Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Eigen error

Mon Mar 30, 2015 3:15 pm
Here is an example on linux:
Code: Select all
// Start GDB with your executable
$ gdb ./my_program
// Start your program by typing 'run':
(gdb) run
// wait for the assertion and then type 'bt' to get the backtrace:
(gdb) bt
zakibob
Registered Member
Posts
3
Karma
0

Re: Eigen error

Tue Mar 31, 2015 12:04 am
Ok thanks ggael, i will try and let you know


Bookmarks



Who is online

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