Once you have the LU factorization, LAPACK (xGECON) can give an
estimate of the condition number.
Perhaps routines that use an LU factorization could have a tolerance
parameter that has a small default value (for the reciprocal condition
number). When this parameter is a Real, the routine could check that the
matrix is not worse-conditioned. When this parameter has some value that
is not a number (eg NA), the condition number would not be calculated
and the routine would proceed anyway.
Same applies to routines using QR factorization, or an SVD (in which
case you can of course get the exact condition number, not only an
estimate).
Best,
Tamas
>>>>> * 0.0 0.0 0.0 * 1.0 0.142857 0.714286