source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/isposdef.m @ 37

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

Added original make3d

File size: 264 bytes
Line 
1function b = isposdef(a)
2% ISPOSDEF   Test for positive definite matrix.
3%    ISPOSDEF(A) returns 1 if A is positive definite, 0 otherwise.
4%    Using chol is much more efficient than computing eigenvectors.
5
6% Written by Tom Minka
7
8[R,p] = chol(a);
9b = (p == 0);
Note: See TracBrowser for help on using the repository browser.