Registered Member
|
Hi!
when I compiled the following code I got the error, "YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX". (with VS2010, Eigen v3.05) MatrixXd m = MatrixXd::Random(100,100); MatrixXd anglesMatrix1(i_Points.size(),i_Points.size()); all the lines having MatrixXd type have errors such as the above two lines. I cannot find any mistake in my code. please somebody help me. what's the problem ? it might be a bug ? Thanks in advance. - Yeonchool. my code is as follows.
the error is as follows.
|
Registered Member
|
as indicated in the debug output, which is line 18?
|
Registered Member
|
thanks for your kind reply.
it is MatrixXd m = MatrixXd::Random(100,100); <--- line 18 however, all lines which have MatrixXd have same errors. MatrixXd anglesMatrix1(i_Points.size(),i_Points.size()); MatrixXd radiusMatrix(i_Points.size(), i_Points.size());
|
Moderator
|
It seems you are calling the ctor Matrix(size) somewhere which is indeed only for vectors. PErhaps in the setAngleMatrix, or setBinsPointReference functions?
|
Registered Member
|
Ggael, Thanks a lot for your kind reply !
I found the origin of error due to your guidance. it was caused by totally different class. the structure is as follows.
In TPS class, I had used square brackets instead of parentheses like
that was my mistake by the way, why the compiler was pointing other location as an error ? anyway now it works well. bravo ggael !!
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]