Solves the linear system Ax = b.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleComplexVector Solve( DoubleComplexLowerTriMatrix A, DoubleComplexVector b ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Solve ( _ A As DoubleComplexLowerTriMatrix, _ b As DoubleComplexVector _ ) As DoubleComplexVector |
| Visual C++ |
|---|
public: static DoubleComplexVector^ Solve( DoubleComplexLowerTriMatrix^ A, DoubleComplexVector^ b ) |
Parameters
- A
- Type: CenterSpace.NMath.Matrix..::.DoubleComplexLowerTriMatrix
A lower triangular matrix
- b
- Type: CenterSpace.NMath.Core..::.DoubleComplexVector
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. |