Solves the linear system Ax = b.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static FloatComplexVector Solve( FloatComplexUpperTriMatrix A, FloatComplexVector b ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Solve ( _ A As FloatComplexUpperTriMatrix, _ b As FloatComplexVector _ ) As FloatComplexVector |
| Visual C++ |
|---|
public: static FloatComplexVector^ Solve( FloatComplexUpperTriMatrix^ A, FloatComplexVector^ b ) |
Parameters
- A
- Type: CenterSpace.NMath.Matrix..::.FloatComplexUpperTriMatrix
A upper triangular matrix
- b
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
Vector to solve for. Must have a length equal to the number of rows in A.
Return Value
A vector x that is the solution to Ax = b.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.SingularMatrixException | Thrown if A is singular. |
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the length of b is different than the number of rows in A. |