Re: [eigen] inverse unit test

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


my last e-mail was not clear,
what I wanted to explain is that, the function in MathFunction.h is
not sufficient (in fact it has not the good signature).
However somewhere else, (I guess in Fuzzy.h)

Manu

On Thu, Jun 10, 2010 at 9:42 AM, Manuel Yguel <manuel.yguel@xxxxxxxxx> wrote:
> I hit the same problem several times and the implementation of
> isMuchSmallerThan for float is:
>
> inline bool ei_isMuchSmallerThan(float a, float b, float prec =
> NumTraits<float>::dummy_precision())
> {
>  return ei_abs(a) <= ei_abs(b) * prec;
> }
>
> if b is zero, then whatever prec is, it will failed if a is not zero,
> so I do agree with Hauke that his implementation is needed.
> So in fact in my own code I finally used the function he proposed.
>
>
> - cheers,
>
> Manu
>



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