[eigen] problem computing kernel in eigen |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: [eigen] problem computing kernel in eigen*From*: Vissarion Fisikopoulos <vfisikop@xxxxxxxxx>*Date*: Tue, 26 Feb 2013 17:09:59 +0200

Hello,

I have a problem with a simple call to the kernel (function call fullPivLu().kernel() ) of an Eigen::Matrix<NT,Eigen::Dynamic,Eigen::Dynamic> . This works for many different instantiations of NT, like mpq_class. The problem is when I try to use a rational number type from the CGAL library, CGAL::Gmpq. I get the following error from the compiler:

/usr/include/eigen3/Eigen/src/LU/FullPivLU.h:595:7: error: call of overloaded ‘abs(const Scalar&)’ is ambiguous

The error is fixed by replacing

if(abs(dec().matrixLU().coeff(i,i)) > premultiplied_threshold)

with

if(internal::abs(dec().matrixLU().coeff(i,i)) > premultiplied_threshold)

in line 595 of /usr/include/eigen3/Eigen/src/LU/FullPivLU.h

Do you think this is a bug?

Best,

Vissarion Fisikopoulos.

**Follow-Ups**:**Re: [eigen] problem computing kernel in eigen***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Eigen 3.2-beta1 ??** - Next by Date:
**Re: [eigen] problem computing kernel in eigen** - Previous by thread:
**Re: [eigen] Fast tall QR for least squares** - Next by thread:
**Re: [eigen] problem computing kernel in eigen**

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