Re: [eigen] SVD with singular matrices

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


2010/9/29  <hamelin.philippe@xxxxxxx>:
> After some more investigation, I found that the problem is effectively the
> SVD. It fails with the singular matrix :
>
> [1 1; 0 0]
>
> while it works fine with JacobiSVD. Is that something to do with the
> implemented method or this is really a bug?

This is a bug. Actually this matrix is already bidiagonal, so the SVD
should skip directly to the iterative Givens process, which should
have no trouble at all since the singular values are distinct.

Again, please make a compilable testcase. It saves us time.

Benoit

>
> Thank you,
>
> Philippe
> ________________________________
> De : Listengine [mailto:listengine@xxxxxxxxxxxxxxxxx] De la part de
> hamelin.philippe@xxxxxxx
> Envoyé : 29 septembre 2010 10:27
> À : eigen@xxxxxxxxxxxxxxxxxxx
> Objet : [eigen] SVD with singular matrices
>
> Hello,
>
> when updating from eigen2 to eigen3, I found that my pseudo-inverse was not
> working correctly for singular matrices. However, just replacing SVD with
> JacobiSVD makes it work. Before looking further, is there any limitation
> with SVD with singular matrices such as:
>
> [1 1;0 0]
>
> Thank you,
>
> ------------------------------------
> Philippe Hamelin, ing. jr, M. Ing
> Chercheur / Researcher
>
> T: 450-652-8499 x2198
> F: 450-652-1316
>
> Expertise robotique et civil
> Institut de recherche d'Hydro-Québec (IREQ)
> 1740, boul. Lionel-Boulet
> Varennes (QC) J3X 1S1, Canada
>



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