Registered Member
|
Hello,
I tried to typedef my own Matrices, but the calculation with them fails. I got the following static assert from eigen: YOU_MIXED_UP_MATRICES_OF_DIFFERENT_SIZES Here is the code: BasisCalculation.h
BasisCalculation.cpp
EigenDemandVector is has alway 1 row and 8 cols. Therefore EigenDemandVectorMatrix has 8 cols and x rows. Summing colwise should result in a vector with 1 row and 8 cols (same size as EigenDemandVector). Could anyone help me? Cheers Helm |
Moderator
|
"demandVectorMatrix.cast<double>()" is invalid. You should rather use the following typedef:
and
|
Registered Member
|
Thank you very much, your solution runs!
You meant
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]