fortran-lapack
Loading...
Searching...
No Matches
la_determinant::operator(.det.) Interface Reference

Compute the determinant of a square matrix using the .det. operator. More...

Public Member Functions

pure real(sp) function la_sdeterminant (a)
 
pure real(dp) function la_ddeterminant (a)
 
pure complex(sp) function la_cdeterminant (a)
 
pure complex(dp) function la_zdeterminant (a)
 

Detailed Description

Compute the determinant of a square matrix using the .det. operator.

This operator computes the determinant of a real or complex square matrix \( A \) from its LU factorization, in a pure context and without an error flag.

Parameters
[in]AThe input square matrix of size \( [n, n] \).
Returns
The determinant of the matrix \( A \), of the same kind as \( A \).
Note
This operator is a shorthand for the pure determinant, allowing expressions such as: \( d = .det. A \)
Warning
The matrix \( A \) is copied internally, so the operator never modifies its argument. Execution stops only if the matrix is not square; a singular matrix returns 0.

Member Function/Subroutine Documentation

◆ la_cdeterminant()

pure complex(sp) function la_determinant::operator(.det.)::la_cdeterminant ( complex(sp), dimension(:,:), intent(in) a)
Parameters
[in]aInput matrix a[m,n]
Returns
Result: matrix determinant

◆ la_ddeterminant()

pure real(dp) function la_determinant::operator(.det.)::la_ddeterminant ( real(dp), dimension(:,:), intent(in) a)
Parameters
[in]aInput matrix a[m,n]
Returns
Result: matrix determinant

◆ la_sdeterminant()

pure real(sp) function la_determinant::operator(.det.)::la_sdeterminant ( real(sp), dimension(:,:), intent(in) a)
Parameters
[in]aInput matrix a[m,n]
Returns
Result: matrix determinant

◆ la_zdeterminant()

pure complex(dp) function la_determinant::operator(.det.)::la_zdeterminant ( complex(dp), dimension(:,:), intent(in) a)
Parameters
[in]aInput matrix a[m,n]
Returns
Result: matrix determinant

The documentation for this interface was generated from the following file: