Click or drag to resize

NMathFunctionsSolve(DoubleSymBandMatrix, DoubleMatrix, Boolean) Method

Solves the linear system AX = B.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleMatrix Solve(
	DoubleSymBandMatrix A,
	DoubleMatrix B,
	bool isPositiveDefinite
)

Parameters

A  DoubleSymBandMatrix
A symmetric, banded matrix.
B  DoubleMatrix
The matrix of right hand sides. B must have the same number of rows as A.
isPositiveDefinite  Boolean
true if A is positive definite. false otherwise.

Return Value

DoubleMatrix
A matrix with the same number of columns as B containing the solutions.
Exceptions
ExceptionCondition
SingularMatrixExceptionThrown if A is singular or isPositiveDefinite is true and A is not positive definite.
MismatchedSizeExceptionThrown if the number of rows in B is different than the number of rows in A.
Remarks
The ith column of X, X(i), is the solution to the equation AX(i) = B(i), where B(i) is the ith column of B.
See Also