naginterfaces.library.det.real_gen¶
- naginterfaces.library.det.real_gen(a, ipiv)[source]¶
real_gen
computes the determinant of a real matrix .lapacklin.dgetrf
must be called first to supply the matrix in factorized form.For full information please refer to the NAG Library document for f03ba
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f03/f03baf.html
- Parameters
- afloat, array-like, shape
The matrix in factorized form as returned by
lapacklin.dgetrf
.- ipivint, array-like, shape
The row interchanges used to factorize matrix as returned by
lapacklin.dgetrf
.
- Returns
- dfloat
The determinant of is given by . It is given in this form to avoid overflow or underflow.
- dexpint
The determinant of is given by . It is given in this form to avoid overflow or underflow.
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
The matrix is approximately singular.
- Notes
real_gen
computes the determinant of a real matrix that has been factorized by a call tolapacklin.dgetrf
. 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