A symmetric matrix in a robot calculation can have positive numbers on its diagonal and still be unsuitable for a standard Cholesky solve. The missing condition concerns every direction of its quadratic form. A two-variable family makes that condition visible in one square-root pivot, and also shows why a failed positive-definite factorization does not necessarily mean the original equations have no unique solution.
This article uses invented dimensionless coefficients. It describes exact algebra, not a robot measurement, a runtime comparison, or an executed software test. The standard real Cholesky factor discussed here is lower triangular with strictly positive diagonal entries and satisfies A = L L_transpose. That positive-diagonal, nonsingular version is the contract of interest; a singular positive-semidefinite matrix can sometimes have an L L_transpose representation with a zero diagonal entry.
NumPy's cholesky documentation requires a Hermitian positive-definite input, with symmetry replacing Hermitian symmetry for real numbers. It also states that it does not verify Hermitian symmetry and uses only the selected triangle and diagonal. LAPACK's DPOTRF documentation similarly specifies a real symmetric positive-definite matrix and identifies the stored triangle through UPLO. Those software contracts motivate the question; the calculations below are independent examples.
Start with A having rows [4, 2] and [2, 5]. Write its proposed factor as rows [a, 0] and [b, d]. Multiplying L by its transpose produces rows [a squared, ab] and [ab, b squared + d squared]. Matching entries therefore gives a = 2, b = 1, and d = 2 when the diagonal is required to be positive. The resulting factor has rows [2, 0] and [1, 2].
Reconstructing A is a direct check: its first diagonal entry is 4, the off-diagonal entries are 2, and the second diagonal entry is 1 + 4 = 5. Checking only the diagonal of the product would miss a coupling error. Checking the full product confirms the stated matrix, including that coupling.
Now solve A x = [6, 7]. Rather than form an inverse, first solve L y = [6, 7]. The first equation is 2y1 = 6, so y1 = 3. The second is y1 + 2y2 = 7, giving y2 = 2. Next solve L_transpose x = y: 2x2 = 2 gives x2 = 1, and 2x1 + x2 = 3 gives x1 = 1. Substitution into the original system yields [4 + 2, 2 + 5] = [6, 7].
To expose the boundary, keep both diagonal entries fixed and replace the off-diagonal value by a real parameter c. The family A(c) has rows [4, c] and [c, 5]. The same coefficient matching gives a = 2, b = c/2, and d squared = 5 - c squared/4. A strictly positive final pivot is possible exactly when the absolute value of c is smaller than the square root of 20.
That condition can be derived without invoking a factorization routine. For a nonzero column vector [u, v], the quadratic form is 4u squared + 2cuv + 5v squared. Completing the square rewrites it as 4(u + cv/4) squared + (5 - c squared/4)v squared. When the second coefficient is positive, both terms are nonnegative and they cannot both vanish for a nonzero vector. Thus the quadratic form is strictly positive in every nonzero direction.
Choose c = 6 as a counterexample to a diagonal-only test. The matrix still has positive diagonal entries 4 and 5 and is perfectly symmetric. But its second candidate pivot squared is 5 - 9 = -4. With [u, v] = [-1.5, 1], the completed square vanishes and the quadratic form equals -4. With [u, v] = [1, 0], it equals 4. Opposite signs in different directions make this matrix indefinite.
This indefinite matrix is nevertheless invertible: its determinant is 20 - 36 = -16. A unique solution exists for every right-hand side in exact arithmetic. What fails is the assumption needed for this real positive-diagonal Cholesky representation. Selecting a solver on the basis of invertibility alone would erase that distinction.
At c equal to the square root of 20, the determinant is instead zero. The second pivot becomes zero, and the nonzero vector [c, -4] is a null vector: the first row gives 4c - 4c = 0, while the second gives c squared - 20 = 0. Here singularity and the loss of a strictly positive pivot coincide. Moving beyond the boundary makes the determinant negative, rather than keeping it zero.
Close to the boundary, the final pivot can be positive but small. In this family, dividing a triangular equation by that small pivot can magnify its right-hand-side contribution. That observation identifies a sensitivity concern; it is not a numerical condition-number estimate or evidence of a library bug. Exact positive definiteness and reliable floating-point behavior are separate questions when coefficients carry uncertainty or rounding.
A successful software return also needs to be interpreted according to the documented input convention. If upper and lower entries disagree, a routine that reads only one triangle can factor the symmetric matrix implied by that triangle. It has not checked that both halves of the supplied array describe the same matrix. Recording which triangle was intended makes the algebra reproducible.
Concept illustration: an existing site-library robot-and-laptop workspace represents numerical model development. It does not show these coefficients, a measured positive-definite model, or a tested Cholesky implementation.
Sources checked October 24, 2026: NumPy, numpy.linalg.cholesky, https://numpy.org/doc/stable/reference/generated/numpy.linalg.cholesky.html ; LAPACK, DPOTRF, https://netlib.org/lapack/explore-html/d2/d09/group__potrf_ga84e90859b02139934b166e579dd211d4.html .