Solves the linear system Ax = b.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleComplexVector Solve(
	DoubleComplexTriDiagMatrix A,
	DoubleComplexVector b,
	bool isHermitian
)
Visual Basic (Declaration)
Public Shared Function Solve ( _
	A As DoubleComplexTriDiagMatrix, _
	b As DoubleComplexVector, _
	isHermitian As Boolean _
) As DoubleComplexVector
Visual C++
public:
static DoubleComplexVector^ Solve(
	DoubleComplexTriDiagMatrix^ A, 
	DoubleComplexVector^ b, 
	bool isHermitian
)

Parameters

A
Type: CenterSpace.NMath.Matrix..::.DoubleComplexTriDiagMatrix
A tridiagonal matrix.
b
Type: CenterSpace.NMath.Core..::.DoubleComplexVector
Vector to solve for. Must have a length equal to the number of rows in A.
isHermitian
Type: System..::.Boolean
true if A is Hermitian and positive definite.

Return Value

A vector x that is the solution to Ax = b.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.SingularMatrixExceptionThrown if A is singular.
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the length of b is different than the number of rows in A.

See Also