Solves the linear system AX = B.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleMatrix Solve( DoubleBandMatrix A, DoubleMatrix B ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Solve ( _ A As DoubleBandMatrix, _ B As DoubleMatrix _ ) As DoubleMatrix |
| Visual C++ |
|---|
public: static DoubleMatrix^ Solve( DoubleBandMatrix^ A, DoubleMatrix^ B ) |
Parameters
- A
- Type: CenterSpace.NMath.Matrix..::.DoubleBandMatrix
A banded matrix.
- B
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
The matrix of right hand sides. B must have the same number of rows as A.
Return Value
The matrix X with the same number of columns as B containing the solutions to the linear system AX = B.
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.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.SingularMatrixException | Thrown if A is singular. |
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in B is different than the number of rows in A. |