source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/isposdef.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 264 bytes |
Line | |
---|---|
1 | function 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); |
9 | b = (p == 0); |
Note: See TracBrowser
for help on using the repository browser.