You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Inv Method > Matrix.Inv Method (integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Inv Method (integer, integer)

Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.

Pascal
function Inv(Index: integer; Len: integer): TMtxVec; overload;

An exception is raised if array borders are overrun/underrun.

var a,b: Matrix; begin a.SetIt(2,2,False,[1,2,3,4]); // a = [1, 2, 3, 4] b.Inv(a,0.01); // b = [1.0, 0.5, 0.3333, 0.25] b := Inv(a,0.01); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!