You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMatrix Class > public > InvElem Method > TOpenCLMatrix.InvElem Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMatrix.InvElem Method ()

The inverse of matrix elements.

Pascal
function InvElem: TOpenCLMatrix; overload; function InvElem(const Src: TOpenCLMtxVec): TOpenCLMatrix; overload;

Calculates the inverse of all matrix elements in place. The computation occurs after first limiting the magnitude of each elements by the lower bound of Treshhold. The limiting operation is performed to avoid division by zero. Since Treshold represents a magnitude, it is always real and must always be positive. For complex versions, the magnitude of the input is limited, but the phase remains unchanged. Zero-valued input is assumed to have zero phase. To bypass the limiting operation set the Threshold to zero.

var A: TOpenCLMatrix; begin clMtxVec.CreateIt(A); try A.SetIt(2,2,False,[1,2, 2,4)); // 2x2, not complex matrix A.InvElem(1.0e-7); finally clMtxVec.FreeIt(A); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!