|[eigen] cross product with complex vectors|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
I was wondering whether the implementation of the cross product for
complex vectors  is correct.
Assume I have two vectors of type Vector3cd which hold a=(0,0,1) and
b=(0,1+i,0). I do a.cross(b) and would expect to get (-1-i,0,0) but get
(-1+i,0,0) as a result.
I think the formula in  should be (a + ib) x (c x id) = (a x c - b x
d) + i (a x d + b x c) but maybe I am wrong.
It would be great if somebody could provide some sanity check or the
reasoning behind .
Thanks for helping,