Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/isposdef.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function b = isposdef(a) % ISPOSDEF Test for positive definite matrix. % ISPOSDEF(A) returns 1 if A is positive definite, 0 otherwise. % Using chol is much more efficient than computing eigenvectors. % From Tom Minka's lightspeed toolbox [R,p] = chol(a); b = (p == 0);