| Visual Basic (Declaration) | |
|---|---|
Public Function Solve( _ ByVal rightHands As CMatrix _ ) As CMatrix | |
| Visual Basic (Usage) | |
|---|---|
Dim instance As CLQ Dim rightHands As CMatrix Dim value As CMatrix value = instance.Solve(rightHands) | |
| C# | |
|---|---|
public CMatrix Solve( CMatrix rightHands ) | |
| C++/CLI | |
|---|---|
public: CMatrix^ Solve( CMatrix^ rightHands ) | |
Parameters
- rightHands
- A CMatrix object containing the right-hand sides for the system of linear equations.
Return Value
A CMatrix object that contains the solution of the system of linear equations.| Exception | Description |
|---|---|
| SizeMismatchException | The rightHands parameter does not represent a matrix with the same number of rows as the factored matrix or the number of rows of the factored matrix is greater than the number of its columns (the linear system is overdetermined). |
The Solve method finds a solution to the system of linear equations A*X = B where:
A denotes the complex matrix that has been previously factored (represented now by its LQ factorization).
B is the matrix whose columns contain the right hand terms.
X is the solution matrix that is to be computed.
The system can be solved with multiple right-hand sides stored in the columns of the matrix B. The columns of X are the minimum norm solution vectors.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7