Generic Decomposition Operations<T>.Symmetric Invert Method
Definition
Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
Overload List
Symmetric | Computes the inverse of a real symmetric indefinite matrix A using the factorization A = U*D*UT or A = L*D*LT computed by DSYTRF. |
Symmetric | Computes the inverse of a real symmetric indefinite matrix A using the factorization A = U*D*UT or A = L*D*LT computed by DSYTRF. |
Symmetric | Computes the inverse of a real symmetric indefinite matrix A using the factorization A = U*D*UT or A = L*D*LT computed by DSYTRF. |
SymmetricInvert(MatrixTriangle, Int32, Span<T>, Int32, ReadOnlySpan<Int32>, Int32)
Computes the inverse of a real symmetric indefinite matrix A using the factorization A = U*D*UT or A = L*D*LT computed by DSYTRF.
public override void SymmetricInvert(
MatrixTriangle storedTriangle,
int n,
Span<T> a,
int lda,
ReadOnlySpan<int> ipiv,
out int info
)
Parameters
- storedTriangle MatrixTriangle
Specifies whether the details of the factorization are stored as an upper or lower triangular matrix. = 'U': Upper triangular, form is A = U*D*UT; = 'L': Lower triangular, form is A = L*D*LT.
- n Int32
The order of the matrix A. N >= 0.
- a Span<T>
A is TReal array, dimension (LDA,N) On entry, the block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by DSYTRF. On exit, if INFO = 0, the (symmetric) inverse of the original matrix. If UPLO = 'U', the upper triangular part of the inverse is formed and the part of A below the diagonal is not referenced; if UPLO = 'L' the lower triangular part of the inverse is formed and the part of A above the diagonal is not referenced.
- lda Int32
The leading dimension of the array A. LDA >= max(1,N).
- ipiv ReadOnlySpan<Int32>
Dimension (N) Details of the interchanges and the block structure of D as determined by DSYTRF.
- info Int32
= 0: successful exit < 0: if INFO = -i, the i-th argument had an illegal value > 0: if INFO = i, D(i,i) = 0; the matrix is singular and its inverse could not be computed.
Remarks
This method corresponds to the LAPACK routine ?SYTRI.