naginterfaces.library.det.complex_gen¶
- naginterfaces.library.det.complex_gen(a, ipiv)[source]¶
complex_gen
computes the determinant of a complex matrix .lapacklin.zgetrf
must be called first to supply the matrix in factorized form.For full information please refer to the NAG Library document for f03bn
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f03/f03bnf.html
- Parameters
- acomplex, array-like, shape
The matrix in factorized form as returned by
lapacklin.zgetrf
.- ipivint, array-like, shape
The row interchanges used to factorize matrix as returned by
lapacklin.zgetrf
.
- Returns
- dcomplex
The mantissa of the real and imaginary parts of the determinant.
- dexpint, ndarray, shape
The exponents for the real and imaginary parts of the determinant. The determinant, , is returned as and , where and and are stored in the first and second elements respectively of the array on successful exit.
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
The matrix is approximately singular.
- Notes
complex_gen
computes the determinant of a complex matrix that has been factorized by a call tolapacklin.zgetrf
. The determinant of is the product of the diagonal elements of with the correct sign determined by the row interchanges.
- References
Wilkinson, J H and Reinsch, C, 1971, Handbook for Automatic Computation II, Linear Algebra, Springer–Verlag