clMatrix.InvElem Method

Overload List

#SignatureDescription
1function InvElem(): TOpenCLMatrix; overload;The inverse of clMatrix elements.
2function InvElem(const X: TOpenCLMtxVec): TOpenCLMatrix; overload;

Overload 1: function InvElem(): TOpenCLMatrix; overload;

The inverse of clMatrix elements.

Returns: TOpenCLMatrix

Remarks:

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 Threshold. The limiting operation is performed to avoid division by zero. Since Threshold 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.

Examples
var  A: clMatrix;
begin
    A.CopyFromArray(2,2,TSingleArray.Create(1,2,
        2,4));  // 2x2, not complex clMatrix
    A.InvElem(1.0e-7);
end;
See Also: clMatrix.MulElem, clMatrix.MulElem

Overload 2: function InvElem(const X: TOpenCLMtxVec): TOpenCLMatrix; overload;

#NameTypeDescription
1XTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Returns: TOpenCLMatrix