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

Invert elements.

Pascal
function Inv: TMtxVec; overload;

Calculates the inverse of all calling object elements in-place without limiting inverse operation.

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