You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > InvElem Method > clMatrix.InvElem Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.InvElem Method ()

The inverse of clMatrix elements.

Syntax
C#
Visual Basic
public TOpenCLMatrix InvElem(); public TOpenCLMatrix InvElem([In] TOpenCLMtxVec X);

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;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!