Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

bug persist as of version 10.0.2

This seems like a bug in PositiveDefiniteMatrixQ to me:

m = {
 { 2, -1}, 
 {-3,  2}

(* => False *)

PositiveDefiniteMatrixQ @ SparseArray[m]
(* => True *)

This is for version 9 and above; older versions (6-8) don't seem to be affected.

share|improve this question
This matrix is not positive definite. It is positive-semidefinite: {1, 1}.m.{1, 1} == 0. Note that the matrix is not Hermitian. Positive definiteness is typically defined for Hermitian matrices, and for these it is sufficient to require the eigenvalues to be positive. This is not true for generalizations to non-Hermitian matrices. –  Szabolcs Jun 28 at 14:03
en.wikipedia.org/wiki/… –  Szabolcs Jun 28 at 14:05
The SparseArray result looks like a bug which you should report to WRI. –  Szabolcs Jun 28 at 14:07
@Teake HermitianMatrixQ @ m returns False –  eldo Jun 28 at 14:22
@eldo Mathematica uses a generalized definition of positive definiteness though, e.g. {{3, -1}, {-3, 2}} is identified of positive definite despite not being symmetric. –  Szabolcs Jun 28 at 14:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.