| Visual Basic (Declaration) | |
|---|---|
Public Function Inverse() As Matrix | |
| C# | |
|---|---|
public Matrix Inverse() | |
| C++/CLI | |
|---|---|
public: Matrix^ Inverse(); | |
Return Value
A Matrix object containing the inverse of the factored matrix.| Exception | Description |
|---|---|
| NotSquareMatrixException | The LU factorization does not represent a square matrix. |
| SingularMatrixException | The LU factorization represents a singular matrix whose inverse cannot be calculated. |
Matrix inverse can be calculated only for a square non-singular matrix. The IsSinular property can be used to check if the factored matrix is singular before attempting to execute the Inverse method.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7