Re: [eigen-commits] commit/eigen: ggael: Let's be safe: enable auto normalization is quaternion to angle-axis code since a slight numerical issue may trigger NaN. The overhead is small and I doubt the perf of this function could be critival for any a

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen-commits Archives ]


Hm...

- m_angle = 2*std::acos(q.w());
+ m_angle = Scalar(2)*std::acos(q.w()/*/internal::sqrt(n2+q.w()*q.w())*/);

Tu as mis des commentaires /*...*/ donc ca change rien!

Je ne suis pas tres chaud pour auto normaliser dans 1 function alors
qu'on ne le fait pas ailleurs! Mais je n'ai pas acces a hg ici donc je
n'ai pas pu regarder de pres le code.

Benoit

2010/10/31  <commits-noreply@xxxxxxxxxxxxx>:
> 1 new changeset in eigen:
>
> http://www.bitbucket.org/eigen/eigen/changeset/6a47c9be16c6/
> changeset:   r3476:6a47c9be16c6
> user:        ggael
> date:        2010-10-31 23:26:01
> summary:     Let's be safe: enable auto normalization is quaternion to angle-axis code since a slight numerical issue may trigger NaN. The overhead is small and I doubt the perf of this function could be critival for any application !
> affected #:  1 file (43 bytes)
>
> Repository URL: http://bitbucket.org/eigen/eigen/
>
> --
> This is a commit notification from bitbucket.org.
> You are receiving this because you have the service
> enabled, addressing the recipient of this email.
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/