Re: [eigen] Sum of quaternions

[ Thread Index | Date Index | More Archives ]

Originally we wanted the Quaternion class to be only for unit
quaternions. Then we changed our mind especially as we would need
general quaternions for  implementing dual quaternions, but the
discussion got stuck in the question of how to make operator+
efficient regardless of the compiler.

It would be OK as a temporary solution to have a trivial operator+
just returning the result by value. Feel free to make a patch, but for
good measure it should have substraction, and mul/div by a scalar.
Then the real solution is quaternion expression templates, we
discussed this and found that that should be doable by doing


2010/12/7 Andrea Arteaga <yo.eres@xxxxxxxxx>:
> It seems that the operator+ between two quaternions is (still) undefined. Am
> I right? I'm not an expert, but I think it is a basic feature for such a
> class... Is there a reason for this unimplemented function? I need it and I
> could write a very simple version of the sum, but I'd like to be sure I'm
> not doing something wrong.
> Cheers.
> Andrea Arteaga

Mail converted by MHonArc 2.6.19+