| Visual Basic (Declaration) | |
|---|---|
Public Function Solve( _ ByVal rightHands As Matrix _ ) As Matrix | |
| C# | |
|---|---|
public Matrix Solve( Matrix rightHands ) | |
| C++/CLI | |
|---|---|
public: Matrix^ Solve( Matrix^ rightHands ) | |
Parameters
- rightHands
- A Matrix object containing the right-hand sides for the system of linear equations.
Return Value
A Matrix object that contains the solution of the system of linear equations.| Exception | Description |
|---|---|
| NotSquareMatrixException | The LU decomposition represents a non-square matrix. |
| SingularMatrixException | The LU factorization represents a singular matrix that cannot be used to solve the system of linear equations. |
| SizeMismatchException | The rightHands parameter does not represent a matrix with the same number of rows as the factored matrix. |
The Solve method finds the solution to the system of linear equations A*X = B where:
A denotes the real square matrix that has been previously factored (represented now by its LU factorization).
B denotes the matrix whose columns contain the right hand terms.
X denotes 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.
Requirements
Platforms: Windows 7, Windows Vista, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows 2000