I am currently trying to reconstruct some of the function of R's kappa
condition number estimation function, which estimates the condition number of a matrix X by:
- Working out the QR decomposition of X.
- Calling to
LAPACK
'sdtrcon
orLINPACK
'sdtrco
(depending on what the underlying dependencies on the users system are), and calculating the condition number of R, the upper triangular matrix which should have the same condition number as X (see here).
I have been trying to understand what the LAPACK
and LINPACK
algorithms do as it may be extremely useful for my own coding.
I have managed to find the algorithm that LINPACK
uses, which was described here, but have had no luck finding the origin of LAPACK
's algorithm. The comments in R's kappa
function suggest that these are using different algorithms (see here) but I am unsure...
Long story short, my question is:
Does anyone know if LAPACK
's dtrcon
and LINPACK
's dtrco
are using the same algorithm and if not, what algorithm is LAPACK
's dtrcon
using?
Thank you in advance!