Uses the LU factorization of self to solve the linear system Ax = b.
Namespace: CenterSpace.NMath.MatrixAssembly: NMathPremium (in NMathPremium.dll) Version: 5.3.0.0
Syntax
| C# |
|---|
public FloatVector Solve( FloatVector b ) |
| Visual Basic |
|---|
Public Function Solve ( _ b As FloatVector _ ) As FloatVector |
| Visual C++ |
|---|
public: FloatVector^ Solve( FloatVector^ b ) |
Parameters
- b
- Type: CenterSpace.NMath.Core..::..FloatVector
Vector to solve for. Must have a length equal to the number of rows in the factored matrix.
Return Value
A vector x that is the solution to Ax = b.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::..SingularMatrixException | Thrown if the factored matrix is singular. |
| CenterSpace.NMath.Core..::..MismatchedSizeException | Thrown if the length of b is different than the number of rows in the factored matrix. |