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:43:28 +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=vVHVqv4rn2+LGk/GmAce/j4QE3Z0zY5h8/eNFgzmR64=; b=QlwpqVy+vXFn0Pu9cWYRaJmYB/dy0pAYnFrJuIgqe56pwj/MDmYWitig+PnSgASoJr NhydzW7ufY8mg+1PD2U1bFPu6DPcq3Z441O9mI+62io5cZfVUG1pBXkeeg1uFmv+/aTd pxcTgrqGRHh33ejoRPnNr+eCqBhXMtcqJhYY8=
- 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=Vp7Jj+VvkCIej3dOSt/YK+yddgnPz3oVvNInB2wmABUTCBfSii3MzJP0m5x0l0eWRL ubsMRkk4ca2pZMKG69lVXsws8XgdvBpjxheI+Zc2FAUgECLH5hyFghr0vlaZIkNx6c9i kAD5eld+CMaLPE2eLs2Stv6bX1xyFl9h42kGM=
OK, last email and I don't spam the list anymore....
my previous counterexample was'nt the best because you could still
factor it with pivoting. But the same reasoning shows that the matrix
0 1
1 0
does not even have a pivoting LDLt decomposition.
Cheers,
Benoit
2009/3/30 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> 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
>