source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/logdet.m

Last change on this file was 37, checked in by (none), 14 years ago

Added original make3d

File size: 246 bytes
Line 
1function y = logdet(A)
2% log(det(A)) where A is positive-definite.
3% This is faster and more stable than using log(det(A)).
4
5% Written by Tom Minka
6% (c) Microsoft Corporation. All rights reserved.
7
8U = chol(A);
9y = 2*sum(log(diag(U)));
Note: See TracBrowser for help on using the repository browser.