Dew MtxVec NET
TMtx.Inv Methods
Summary
Calculates matrix inverse (Mtx^-1).

Class
TMtx

Declaration
Function Inv(MtxType: TMtxType): TMtx;

Description
Compute inverse of the matrix and specify the matrix type to select the most performance efficient algorithm.
Declaration
Function Inv: TMtx;

Description
Calculate the inverse (Mtx^-1) of the calling matrix. If the calling matrix is not Quadratic, an exception is raised. Parameter MtxType determines which optimized method will be used for calculating the inverse matrix. If MtxType is omitted, the default value mtGeneral (general quadratic matrix) is used.

NOTE: The MtxType parameter is not verified. To determine if the calling matrix type is actually MtxType, use the DetectMtxType method.

 See Also 
DecectMtxType 
MtxError 

Example 1

var A: TMtx; begin CreateIt(A); try A.SetIt(2,2,False,[1,2, 2,4]); // 2x2, real matrix A.Inv; finally FreeIt(A); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com