Registered Member
|
Not sure if I am doing everything right.
I am trying to overload based on scalar type double / float. But somehow Visual Studio compiler doesn't like it. It tells me
Thanks. |
Registered Member
|
I replicated the problem on linux and gcc-4.7.2.
|
Moderator
|
Fixed in devel branch, see: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=969
and backported to 3.2: https://bitbucket.org/eigen/eigen/commits/2ecad781e8a3/ |
Registered Member
|
That sounds good.
I have a followup question. As I understand Matrix::swap is efficient when used with dynamic size matrices because no data is copied. I am 99% sure about that, but still would like here a confirmation from the developers. Thanks. |
Moderator
|
yes, in A.swap(B), if A and B are Matrix<> object of the exact same type, then swap simply swaps the pointers and sizes.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]