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

Inverse elements.

Pascal
function Inv: TOpenCLMtxVec; overload;

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

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