Re: [eigen] Another LDLt issue |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Another LDLt issue
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 30 Mar 2009 20:40:29 +0200
- 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=PjDvHIlqLtrXurJjUldyWRCk5j6EGo8uzwmu2+9G+/Q=; b=snDrZXCF7o14TSFpHTXMPgiAqKO31j7zjMPMRgRgVPLuMZrFKp5UL3xte+ib7XYVPI ahZoT9XiKTTnXwXnR8l2C8tnu6q26PpghPtNj8ZZg9MKF3cRlRYzQ1WDHuNs6/oHr40v YTl6Pj4dPAHwhXu+GUBn74qB8mWCzXAW0M8M8=
- 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=v35jkaMXzzySlItLOre0QOaU/0oS3lXsihehrg/lmiPBN+JI9a3a7JGqHYz2iKidv3 cpSJ7eifX0a2QULTf3l/hUOrc9l+vpR1RtzsMuesY92VaGnwYJoSOHkvlpuVmb+szTrY JJqGe92hEl1+tm4PtBcYq4oIQfu51tHyQvEA0=
2009/3/30 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
>>>Anyway,
>>> routine dsytrf does an LDLt factorization for a symmetric but not
>>> necessarily positive definite
>>> matrix.
>>
>> Our LDLt does the same,
>
> Oops, I misread what you wrote. So, dsytrf doesn't require the matrix
> to be positive? interesting. I don't have an example of a symmetric
> matrix that doesn't have an LDLt decomposition, I was just saying that
> the standard algorithm couldn't handle all of them, but maybe dsytrf
> uses another algorithm...
>
> Benoit
>
OK, now I have a counter example: the matrix M =
0 1
1 1
is symmetric and nonsingular, and does NOT have a LDLt decomposition.
Proof: if L is
1 0
x 1
And D is
a 0
0 b
Then LDLt is
a ax
ax (a^2)x+b
So if LDLt=M then we have a=0 and ax=1, which is impossible.
So for sure, the DSYTRF function can't find a LDLt for all symmetric
matrices. I think that what they mean is that they work for all
positive matrices, not necessarily positive definite. IOW there's a
little mistake in their docs.
Cheers,
Benoit