|
fortran-lapack
|
Compute the condition number of a matrix. More...
Public Member Functions | |
| pure real(sp) function | la_cond_char_s (a, order) |
| real(sp) function | la_cond_err_char_s (a, order, err) |
| pure real(sp) function | la_cond_int_s (a, order) |
| real(sp) function | la_cond_err_int_s (a, order, err) |
| pure real(dp) function | la_cond_char_d (a, order) |
| real(dp) function | la_cond_err_char_d (a, order, err) |
| pure real(dp) function | la_cond_int_d (a, order) |
| real(dp) function | la_cond_err_int_d (a, order, err) |
| pure real(sp) function | la_cond_char_c (a, order) |
| real(sp) function | la_cond_err_char_c (a, order, err) |
| pure real(sp) function | la_cond_int_c (a, order) |
| real(sp) function | la_cond_err_int_c (a, order, err) |
| pure real(dp) function | la_cond_char_z (a, order) |
| real(dp) function | la_cond_err_char_z (a, order, err) |
| pure real(dp) function | la_cond_int_z (a, order) |
| real(dp) function | la_cond_err_int_z (a, order, err) |
Compute the condition number of a matrix.
This function returns the condition number \( \kappa(A) = \|A\| \cdot \|A^{-1}\| \) of a real or complex matrix \( A \), in the norm that order selects:
order = 2 or "2". \( A \) may be rectangular.order = 1 or "1", and infinity norm, order = huge(0) or "inf": LAPACK's gecon estimate from the LU factorization of the square matrix \( A \).order = "fro": from the explicit inverse of the square matrix \( A \).| [in] | a | The input matrix \( A \) of size \( [m,n] \). |
| [in] | order | (Optional) The norm, as an integer(ilp) or a character string. Default is 2. |
| [out] | err | (Optional) A state return flag. Without it the function is pure, and an error stops execution. |
real scalar of the kind of \( A \): \( +\infty \) for a singular matrix, and 0 if the computation failed.order = 2 as the Frobenius norm, cond reads it as the spectral norm, as NumPy does. | pure real(sp) function la_norms::cond::la_cond_char_c | ( | complex(sp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| pure real(dp) function la_norms::cond::la_cond_char_d | ( | real(dp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| pure real(sp) function la_norms::cond::la_cond_char_s | ( | real(sp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| pure real(dp) function la_norms::cond::la_cond_char_z | ( | complex(dp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| real(sp) function la_norms::cond::la_cond_err_char_c | ( | complex(sp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| [out] | err | Output state return flag. |
| real(dp) function la_norms::cond::la_cond_err_char_d | ( | real(dp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| [out] | err | Output state return flag. |
| real(sp) function la_norms::cond::la_cond_err_char_s | ( | real(sp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| [out] | err | Output state return flag. |
| real(dp) function la_norms::cond::la_cond_err_char_z | ( | complex(dp), dimension(:,:), intent(in) | a, |
| character(len=*), intent(in) | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | Order of the matrix norm |
| [out] | err | Output state return flag. |
| real(sp) function la_norms::cond::la_cond_err_int_c | ( | complex(sp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| [out] | err | Output state return flag. |
| real(dp) function la_norms::cond::la_cond_err_int_d | ( | real(dp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| [out] | err | Output state return flag. |
| real(sp) function la_norms::cond::la_cond_err_int_s | ( | real(sp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| [out] | err | Output state return flag. |
| real(dp) function la_norms::cond::la_cond_err_int_z | ( | complex(dp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order, | ||
| type(la_state), intent(out) | err ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| [out] | err | Output state return flag. |
| pure real(sp) function la_norms::cond::la_cond_int_c | ( | complex(sp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| pure real(dp) function la_norms::cond::la_cond_int_d | ( | real(dp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| pure real(sp) function la_norms::cond::la_cond_int_s | ( | real(sp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |
| pure real(dp) function la_norms::cond::la_cond_int_z | ( | complex(dp), dimension(:,:), intent(in) | a, |
| integer(ilp), intent(in), optional | order ) |
| [in] | a | Input matrix a(m,n) |
| [in] | order | [optional] Order of the matrix norm: 1, 2 (default) or huge(0) |