Click or drag to resize

NMathFunctionsSolve(DoubleHermitianBandMatrix, DoubleComplexVector, Boolean) Method

Solves the linear system Ax = b.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleComplexVector Solve(
	DoubleHermitianBandMatrix A,
	DoubleComplexVector b,
	bool isPositiveDefinite
)

Parameters

A  DoubleHermitianBandMatrix
An Hermitian banded matrix.
b  DoubleComplexVector
Vector to solve for. Must have a length equal to the number of rows in A.
isPositiveDefinite  Boolean
true if A is positive definite.

Return Value

DoubleComplexVector
A vector x that is the solution to Ax = b.
Exceptions
ExceptionCondition
SingularMatrixExceptionThrown if A is singular or if isPositiveDefinite is true and A is not positive definite.
MismatchedSizeExceptionThrown if the length of b is different than the number of rows in A.
See Also