|Re: [eigen] Instability in LLT and LDLT methods.|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Instability in LLT and LDLT methods.
- From: Keir Mierle <mierle@xxxxxxxxx>
- Date: Tue, 27 Jan 2009 15:43:57 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2HTNR36geN9N4NMWGWxip4eUMj89+09aN2zQ0tZS8KQ=; b=iPVIZIyKBPhE6Xo7YOHYNMbh1Jtt6LSicWUIOg92pqLh9O91a/QSYenmFXRY58bltI ZLnKKpwg02s95m2nDdv1QKZtxjbFbV7RqnKGBOLNUiI/YAlBq9WdJvt9oP9xMyhb/BBp r0bYdj1ZNpDUFSI9XTAk8mcyLUZDzLsNLgWJQ=
- 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=hW2F31Aqo12Tc24TZxP2Ee9ItyKX1sX4osAbF11TLS+Ib6m2Vf8Ztc4WTZPNSBWc04 nOEdnKdhWok6GXA5vKQq1oQhAOuFT+R+v3jz9GzcVzJgG3YS5CS2FcHaB/zNQszAMXvM nBOaldF0l+YlMeEEkVl80+aDHsKmgO20cqa/w=
Probably it's better to do full pivoting. Apparently cholesky is
stable for semidefinite matrices when full pivoting is used:
On Tue, Jan 27, 2009 at 3:05 PM, Gael Guennebaud
> yes, it seems the test to check whether the matrix is positive
> definite was too strict. I changed the absolute tolerance a bit, but
> we still need something better. Basically, in Cholesky we compute at
> each iteration 1/sqrt(x), and so x must be >0 with some epsilon...
> On Tue, Jan 27, 2009 at 7:35 PM, Keir Mierle <mierle@xxxxxxxxx> wrote:
>> Here is a testcase that fails with LLT and LDLT but works fine with
>> all of LU, SVD, and QR solving. Depends on my previous patch for QR
>> solver (or comment out the qr().solve line).