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] | A | The 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.