You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > Inv Method > TMtx.Inv Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.Inv Method ()

Calculates matrix inverse (Mtx^-1).

Syntax
C#
Visual Basic
public new TMtx Inv();

Calculate the inverse (Mtx^-1) of the calling matrix. If the calling matrix is not Quadratic, an exception is raised. Parameter TMtxType 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.

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 (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!