DecompositionOperations<TReal, TComplex>.HermitianSolve Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

HermitianSolve(MatrixTriangle, Int32, Int32, Array2D<TComplex>, Array1D<Int32>, Array2D<TComplex>, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

HermitianSolve(MatrixTriangle, Int32, Int32, ReadOnlySpan2D<TComplex>, Span<Int32>, Span2D<TComplex>, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

HermitianSolve(MatrixTriangle, Int32, Int32, ReadOnlySpan<TComplex>, Int32, ReadOnlySpan<Int32>, Span<TComplex>, Int32, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

HermitianSolve(MatrixTriangle, Int32, Int32, Array2D<TComplex>, Array1D<Int32>, Array2D<TComplex>, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

C#
public void HermitianSolve(
	MatrixTriangle uplo,
	int n,
	int nrhs,
	Array2D<TComplex> a,
	Array1D<int> ipiv,
	Array2D<TComplex> b,
	out int info
)

Parameters

uplo  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*UH;
            = 'L':  Lower triangular, form is A = L*D*LH.
            
n  Int32
            The order of the matrix A.  N >= 0.
            
nrhs  Int32
            The number of right hand sides, i.e., the number of columns
            of the matrix B.  NRHS >= 0.
            
a  Array2D<TComplex>
            A is TComplex array, dimension (LDA,N)
            The block diagonal matrix D and the multipliers used to
            obtain the factor U or L as computed by ZHETRF.
            
            The leading dimension of the array A.  LDA >= max(1,N).
            
ipiv  Array1D<Int32>
            Dimension (N)
            Details of the interchanges and the block structure of D
            as determined by ZHETRF.
            
b  Array2D<TComplex>
            B is TComplex array, dimension (LDB,NRHS)
            On entry, the right hand side matrix B.
            On exit, the solution matrix X.
            
            The leading dimension of the array B.  LDB >= max(1,N).
            
info  Int32
            = 0:  successful exit
            < 0:  if INFO = -i, the i-th argument had an illegal value
            

HermitianSolve(MatrixTriangle, Int32, Int32, ReadOnlySpan2D<TComplex>, Span<Int32>, Span2D<TComplex>, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

C#
public void HermitianSolve(
	MatrixTriangle uplo,
	int n,
	int nrhs,
	ReadOnlySpan2D<TComplex> a,
	Span<int> ipiv,
	Span2D<TComplex> b,
	out int info
)

Parameters

uplo  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*UH;
            = 'L':  Lower triangular, form is A = L*D*LH.
            
n  Int32
            The order of the matrix A.  N >= 0.
            
nrhs  Int32
            The number of right hand sides, i.e., the number of columns
            of the matrix B.  NRHS >= 0.
            
a  ReadOnlySpan2D<TComplex>
            A is TComplex array, dimension (LDA,N)
            The block diagonal matrix D and the multipliers used to
            obtain the factor U or L as computed by ZHETRF.
            
            The leading dimension of the array A.  LDA >= max(1,N).
            
ipiv  Span<Int32>
            Dimension (N)
            Details of the interchanges and the block structure of D
            as determined by ZHETRF.
            
b  Span2D<TComplex>
            B is TComplex array, dimension (LDB,NRHS)
            On entry, the right hand side matrix B.
            On exit, the solution matrix X.
            
            The leading dimension of the array B.  LDB >= max(1,N).
            
info  Int32
            = 0:  successful exit
            < 0:  if INFO = -i, the i-th argument had an illegal value
            

HermitianSolve(MatrixTriangle, Int32, Int32, ReadOnlySpan<TComplex>, Int32, ReadOnlySpan<Int32>, Span<TComplex>, Int32, Int32)

Solves a system of linear equations A*X = B with a complex Hermitian matrix A using the factorization A = U*D*UH or A = L*D*LH computed by ZHETRF.

C#
public abstract void HermitianSolve(
	MatrixTriangle uplo,
	int n,
	int nrhs,
	ReadOnlySpan<TComplex> a,
	int lda,
	ReadOnlySpan<int> ipiv,
	Span<TComplex> b,
	int ldb,
	out int info
)

Parameters

uplo  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*UH;
            = 'L':  Lower triangular, form is A = L*D*LH.
            
n  Int32
            The order of the matrix A.  N >= 0.
            
nrhs  Int32
            The number of right hand sides, i.e., the number of columns
            of the matrix B.  NRHS >= 0.
            
a  ReadOnlySpan<TComplex>
            A is TComplex array, dimension (LDA,N)
            The block diagonal matrix D and the multipliers used to
            obtain the factor U or L as computed by ZHETRF.
            
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 ZHETRF.
            
b  Span<TComplex>
            B is TComplex array, dimension (LDB,NRHS)
            On entry, the right hand side matrix B.
            On exit, the solution matrix X.
            
ldb  Int32
            The leading dimension of the array B.  LDB >= max(1,N).
            
info  Int32
            = 0:  successful exit
            < 0:  if INFO = -i, the i-th argument had an illegal value
            

See Also