3.5

3.5 | 4 ratings Rate this file 16 Downloads (last 30 days) File Size: 5.17 KB File ID: #47

ldlt

by Brian Borchers

 

26 Jan 2000 (Updated 09 Sep 2002)

This collection compute square root free Cholesky factorizations of the form A=L*D*L'

| Watch this File

File Information
Description

The m-files in this collection compute square root free Cholesky
factorizations of the form A=L*D*L', modified Cholesky factorizations
for matrices which may not quite be positive definite, and rank-one
updates of the factorizations. These routines were developed for a
course in nonlinear programming based on "Practical Optimization" by
Gill, Murray, and Wright.

Acknowledgements
This submission has inspired the following:
Control random numbers in Simulink
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
27 Jan 2004 d c

the mchol.m file doesn't produce as advertized. it failed to give me outputs as described in the help section of the file

27 Jan 2004 ron s

works as advertized

30 Jun 2004 Guillermo Díaz de León  
24 Mar 2006 ilhan polat

I think it needs a validity check or sorting. Gives a NaN error when the following code is run:
[L,D]=ldlt([4 1 0;1 2 0;0 0 0])

24 Mar 2006 ilhan polat

The matrix should be as
[L,D]=ldlt([4 2 0;2 1 0;0 0 0])

21 Aug 2007 Tim Davis

I realize that D is diagonal, so "p'*inv(D)*p" may seem safe ... but it isn't. You should use p'*(D\p) instead.

Please login to add a comment or rating.
Updates

modifying description

Tag Activity for this File
Tag Applied By Date/Time
linear algebra Brian Borchers 22 Oct 2008 06:30:59
square Brian Borchers 22 Oct 2008 06:30:59
root Brian Borchers 22 Oct 2008 06:30:59
factorizations Brian Borchers 22 Oct 2008 06:30:59
cholesky Brian Borchers 22 Oct 2008 06:30:59
cholesky Christian 18 Apr 2012 14:42:27

Contact us at files@mathworks.com