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

Calculates matrix inverse (Mtx^-1).

Syntax
C#
Visual Basic
public 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: Matrix; begin A.SetIt(2,2,False,[1,2, 2,4]); // 2x2, real matrix A.Inv; end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!