Docs/Sparse Direct Solver (SuperLU)/slu.matrix.isPositiveDefiniteSparse
Back to Sparse Direct Solver (SuperLU)

slu.matrix.isPositiveDefiniteSparse

Check if a sparse matrix appears to be positive definite.

Syntax

slu.matrix.isPositiveDefiniteSparse(A)

Description

Check if a sparse matrix appears to be positive definite. This performs heuristic checks: - Matrix must be symmetric - All diagonal elements must be positive - Diagonal dominance check (sufficient but not necessary) Note: This does not guarantee positive definiteness. For a definitive check, attempt Cholesky factorization.

Parameters

NameDescription
A- Sparse matrix

Returns

boolean