|
fortran-lapack
|
Compute the determinant of a rectangular matrix. More...
Public Member Functions | |
| pure real(sp) function | la_sdeterminant (a) |
| real(sp) function | la_sdeterminant_err (a, overwrite_a, err) |
| pure real(dp) function | la_ddeterminant (a) |
| real(dp) function | la_ddeterminant_err (a, overwrite_a, err) |
| pure complex(sp) function | la_cdeterminant (a) |
| complex(sp) function | la_cdeterminant_err (a, overwrite_a, err) |
| pure complex(dp) function | la_zdeterminant (a) |
| complex(dp) function | la_zdeterminant_err (a, overwrite_a, err) |
Compute the determinant of a rectangular matrix.
This function computes the determinant of a real or complex rectangular matrix \( A \). The determinant is calculated using LU factorization.
Without err the function is pure, takes A as intent(in), and stops on error; it is the function behind .det.. With err it returns the error state instead, and can overwrite A.
| [in,out] | A | The input square matrix of size \( [m, n] \). If overwrite_a is true, the contents of A may be modified during computation. |
| [in] | overwrite_a | (Optional, with err only) If .true., A may be overwritten and destroyed. Default is .false.. |
| [out] | err | (Optional) A state return flag. If an error occurs and err is not provided, the function will stop execution. |
real scalar value of the same kind as the input matrix.overwrite_a is enabled, the original contents of A will be lost. | pure complex(sp) function la_determinant::det::la_cdeterminant | ( | complex(sp), dimension(:,:), intent(in) | a | ) |
| [in] | a | Input matrix a[m,n] |
| complex(sp) function la_determinant::det::la_cdeterminant_err | ( | complex(sp), dimension(:,:), intent(inout), target | a, |
| logical(lk), intent(in), optional | overwrite_a, | ||
| type(la_state), intent(out) | err ) |
| [in,out] | a | Input matrix a[m,n] |
| [in] | overwrite_a | [optional] Can A data be overwritten and destroyed? |
| [out] | err | State return flag |

| pure real(dp) function la_determinant::det::la_ddeterminant | ( | real(dp), dimension(:,:), intent(in) | a | ) |
| [in] | a | Input matrix a[m,n] |
| real(dp) function la_determinant::det::la_ddeterminant_err | ( | real(dp), dimension(:,:), intent(inout), target | a, |
| logical(lk), intent(in), optional | overwrite_a, | ||
| type(la_state), intent(out) | err ) |
| [in,out] | a | Input matrix a[m,n] |
| [in] | overwrite_a | [optional] Can A data be overwritten and destroyed? |
| [out] | err | State return flag |

| pure real(sp) function la_determinant::det::la_sdeterminant | ( | real(sp), dimension(:,:), intent(in) | a | ) |
| [in] | a | Input matrix a[m,n] |
| real(sp) function la_determinant::det::la_sdeterminant_err | ( | real(sp), dimension(:,:), intent(inout), target | a, |
| logical(lk), intent(in), optional | overwrite_a, | ||
| type(la_state), intent(out) | err ) |
| [in,out] | a | Input matrix a[m,n] |
| [in] | overwrite_a | [optional] Can A data be overwritten and destroyed? |
| [out] | err | State return flag |

| pure complex(dp) function la_determinant::det::la_zdeterminant | ( | complex(dp), dimension(:,:), intent(in) | a | ) |
| [in] | a | Input matrix a[m,n] |
| complex(dp) function la_determinant::det::la_zdeterminant_err | ( | complex(dp), dimension(:,:), intent(inout), target | a, |
| logical(lk), intent(in), optional | overwrite_a, | ||
| type(la_state), intent(out) | err ) |
| [in,out] | a | Input matrix a[m,n] |
| [in] | overwrite_a | [optional] Can A data be overwritten and destroyed? |
| [out] | err | State return flag |
