sparsax.rcond¶
- sparsax.rcond(Ai, Aj, Ax, n)[source]¶
A cheap estimate of the reciprocal condition number of an SPD matrix.
CHOLMOD’s
(min(diag(L)) / max(diag(L)))^2: 1 is perfectly conditioned, and near 0 means nearly singular. It reads the factor, so it costs nothing beyond the factorization, which it shares withsolve(), but it is a rough indicator rather than a bound. CHOLMOD does not scale the matrix, so a badly scaled matrix also scores low, and values are not comparable withlu_rcond(), which scales first. Not differentiable.