Qu

isposdef

Builtin index · Core maths

isposdef(A)

Input: A · Output: no output

What it is

true when A is symmetric and positive definite, that is when the Cholesky factorisation succeeds. Symmetry is checked first, to within 10*n*eps of the largest entry (so a product such as B'*B, symmetric only to rounding, qualifies; Cholesky itself reads only the lower triangle). A symmetric indefinite matrix, a positive semidefinite singular one such as [1 1; 1 1], and a non-symmetric one all give false. Errors: a non-square, empty or non-finite (NaN, inf) matrix, complex input.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
isposdef(A)
A matrixnot documented yet
not documented yetSymmetry is checked first, to within 10*n*eps of the largest entry (so a product such as B'*B, symmetric only to rounding, qualifies; Cholesky itself reads only the lower triangle). Errors: a non-square, empty or non-finite (NaN, inf) matrix, complex input.

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.