Click or drag to resize

NMathFunctionsSolve(FloatTriDiagMatrix, FloatVector, Boolean) Method

Solves the linear system Ax = b.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatVector Solve(
	FloatTriDiagMatrix A,
	FloatVector b,
	bool isSymmetricPD
)

Parameters

A  FloatTriDiagMatrix
A tridiagonal matrix.
b  FloatVector
Vector to solve for. Must have a length equal to the number of rows in A.
isSymmetricPD  Boolean
true if A is symmetric and positive definite.

Return Value

FloatVector
A vector x that is the solution to Ax = b.
Exceptions
ExceptionCondition
MatrixNotSquareExceptionThrown if A is not square.
SingularMatrixExceptionThrown if A is singular.
MismatchedSizeExceptionThrown if the length of b is different than the number of rows in A.
See Also