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

The inverse of clMatrix elements.

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

Calculates the inverse of all clMatrix 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: clMatrix; begin A.CopyFromArray(2,2,TSingleArray.Create(1,2, 2,4)); // 2x2, not complex clMatrix A.InvElem(1.0e-7); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!