You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > Inv Method > TOpenCLMtxVec.Inv Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.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: TOpenCLVector; begin CreateIt(a,b); try 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] finally FreeIt(a,b); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!