Re: [eigen] SVD with singular matrices |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] SVD with singular matrices
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 29 Sep 2010 10:32:14 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=xac40PuDuqfn6/zO5eBgUZLKVrtx5ynX9HL8tUWFjX8=; b=BtelQSVVgbUjmeMJLMycpDgViaraE3ehRzwV0QtbDk5LPCcsjOhl5I+pvw/f+lh0X6 EZjiI2RbATjXvdXAVZ+VM1kJOtfe4hBDltMPFb+ICnKPqCrtkYukmqGE58ihSnf18oXH w05gBWB1+rqoevnM4rk7rM12YIWtevM74R1Yo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MDzAfAsrv0gn6d5GXbihIxB04xF9q2zBX1W6thc/I1+qWGWK1KtmC3RhTD8Uwo8Boj 7CoKChFeAeZneqhPRosZpjQfGPtZHHl91DOoJBmYuyZaz2UGJHL79NiCG5TkmZ1RzQ8J KZIO05MUbzHxUz5M7r9MjgJC+EMSpTMVUxo5g=
2010/9/29 <hamelin.philippe@xxxxxxx>:
> 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]
JacobiSVD always works, and is always precise. But it's slow for large matrices.
SVD uses the Golub-Kahan bidiagonalization approach. So it's faster,
but potentially inaccurate for certain singular matrices.
I would be surprised though if the above 2x2 matrix was enough to
expose problems in it. That would be a bug. Can you make a compilable
test case?
Thanks,
Benoit
>
> 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
>