Registered Member
|
The follow code seg faults for me. Did I miss something in the documentation? Or should I file this as a bug? I am using Linux and the 3.0.5 release of Eigen.
|
Moderator
|
hm, you should get a compilation error. so please fill a bug report. In your case you should really use VectorXd, in which case the index based accessor will be allowed, e.g:
VectorXd A, B; ... double p = (A.transpose() * B)(0,0); double p = (A.transpose() * B)(0); double p = A.transpose() * B; etc. see also http://eigen.tuxfamily.org/dox-devel/Qu ... cOperators for other variants: |
Registered Member
|
Thanks ggael, I have filed a new bug (linked below). Good suggestion about Vector. The work around I used was saving the product to a variable.
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=447 |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]